Describe the bug
When running tenv tf use <version> and then executing terragrunt, terragrunt still uses the default terraform binary instead of the version set by tenv, since the TERRAGRUNT_TFPATH is set to /usr/local/bin/terraform.
To Reproduce
Steps to reproduce the behavior:
- Use
tenv tf use <version> to switch to a different terraform version.
- Run terragrunt.
- Observe that terragrunt continues to use
/usr/lib/bin/terraform.
Expected behavior
Terragrunt should respect the version set by tenv tf use <version>, not the default system terraform.
Environment (please complete the following information):
Additional context
The issue is caused because TERRAGRUNT_TFPATH is set to the system terraform binary. tenv should update this for the shell session or document how users can manually point terragrunt to the correct binary.
Describe the bug
When running
tenv tf use <version>and then executing terragrunt, terragrunt still uses the default terraform binary instead of the version set bytenv, since theTERRAGRUNT_TFPATHis set to/usr/local/bin/terraform.To Reproduce
Steps to reproduce the behavior:
tenv tf use <version>to switch to a different terraform version./usr/lib/bin/terraform.Expected behavior
Terragrunt should respect the version set by
tenv tf use <version>, not the default system terraform.Environment (please complete the following information):
Additional context
The issue is caused because
TERRAGRUNT_TFPATHis set to the system terraform binary.tenvshould update this for the shell session or document how users can manually point terragrunt to the correct binary.