Open dennyx opened 5 years ago
Hi @dennyx ! Thanks for reporting this. Can you share the rest of the configuration, including the module, or a smaller example that we can use to reproduce this issue?
hi @mildwonkey Thanks for the kindly feeback. Add sample repository https://github.com/dennyx/terraform-21424 for reproduce.
git clone https://github.com/dennyx/terraform-21424.git
cd terraform-21424/terraform-main
terraform init
Appreciate if any kindly help on this, thanks~
ps: add terraform v0.12 download link https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
Thanks @dennyx! There error is caused by this block (I found it in at least two files):
terraform {
required_version = ""
}
You cannot have an empty string ""
in the version constraint.
hi @mildwonkey , Thanks for the kindly help, it works now~ And I will close this issue
Hi @mildwonkey, Doesn't the error message sound a little confusing? Isn't there some way to propagate to this error message the exact name of the variable that violates the constraint?
I agree! The message could certainly be clearer, and it should include the file name (like the other error messages try to do). I'm going to reopen this as an enhancement.
I get the same error when trying to run through the hello world here: https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/azure-get-started
Terraform Version
Terraform Configuration Files
Expected Behavior
work as version 0.11.13 that no need to specify version for local modules
Actual Behavior
Steps to Reproduce
Additional Context
Thanks for any kindly help