Closed ryandeivert closed 4 years ago
I was looking to see why this check was not working, and verified locally that module resolution happens before the version check.... wtf.
tfenv
to set terraform version to 0.12.2
terraform/
directory named main.tf
with contents:
terraform {
required_version = ">= 0.12.0"
}
module "test" { source = "modules/foo_bar_test_modules" // implicitly relative path }
* Ran `terraform init` and got error
* Changed implicitly relative path to explicit via: `./modules/foo_bar_test_modules`
* Ran again and no error
complete with #1035
Background
Terraform 0.12.X requires explicit relative paths (using a ./ prefix). See: poseidon/typhoon#457.
This breaks things, and we should update to support the newest release of terraform.