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
Describe the bug
When running the terragrunt action in a folder that contains a .terraform-version file, the action install the terraform version specified in the tf_version input rather than use the version specified in .terraform-version. Then, when terragrunt runs the action (i.e. "plan"), it fails because cannot find the terrafom binary version specified in .terraform-version
To Reproduce
Create a .terraform-version that specifies a version different than the defined in tf_version input
Expected behavior
Terragrunt action should first look for the presence of .terraform-version to decide which version to install. This code could make a difference:
if [ -f .terraform-version ];then
tfversion=$(cat .terraform-version)
log "Installing Terraform version ${tfversion}"
mise install terraform
fi
log "Installing Terraform version ${version}"
mise install terraform@"${version}"
Describe the bug
When running the terragrunt action in a folder that contains a .terraform-version file, the action install the terraform version specified in the
tf_version
input rather than use the version specified in .terraform-version. Then, when terragrunt runs the action (i.e. "plan"), it fails because cannot find the terrafom binary version specified in .terraform-versionTo Reproduce
Create a .terraform-version that specifies a version different than the defined in
tf_version
inputExpected behavior
Terragrunt action should first look for the presence of .terraform-version to decide which version to install. This code could make a difference:
Nice to have
Versions
Additional context
N/A
The text was updated successfully, but these errors were encountered: