You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
☝️ this is problematic and an undocumented (as far as i can tell) breaking change.
0.12 Implicit (with pessimistic operator)
→ tf version
Terraform v0.12.0
→ cat main.tf
terraform {
required_version = "~> 0.11"
}
output "foo" {
value = "we shouldn't see this when using terraform 0.12.0"
}
→ tf init
Initializing the backend...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
/tmp/main
→ tf apply
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
foo = we shouldn't see this when using terraform 0.12.0
0.12 Explicit (without pessimistic operator)
→ cat main.tf
terraform {
required_version = ">= 0.11, < 0.12"
}
output "foo" {
value = "we shouldn't see this when using terraform 0.12.0"
}
→ tf init
Error: Unsupported Terraform Core version
This configuration does not support Terraform version 0.12.0. To proceed,
either choose another supported Terraform version or update the root module's
version constraint. Version constraints are normally set for good reason, so
updating the constraint may lead to other errors or unexpected behavior.
The text was updated successfully, but these errors were encountered:
The pessimistic constraint operator behavior seems to have changed from:
☝️ this is problematic and an undocumented (as far as i can tell) breaking change.
0.12 Implicit (with pessimistic operator)
0.12 Explicit (without pessimistic operator)
The text was updated successfully, but these errors were encountered: