terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

MacOS Brew terragrunt 0.38.6/terraform 1.2.6 are not compatible in terragrunt's eyes

Open simon-janes-sp opened this issue 3 years ago • 1 comments

❯ brew install terragrunt
==> Downloading https://ghcr.io/v2/homebrew/core/terraform/manifests/1.2.6
Already downloaded: /Users/simon.janes/Library/Caches/Homebrew/downloads/3c5a8fee75c21fd30c2734728810ae9bec1858421592edcaaaeb6aeb2c26ca37--terraform-1.2.6.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/terraform/blobs/sha256:fee7d9aa2dec048298d529ce53e5ef776adaeff2b183d60bf45f60550d85626b
Already downloaded: /Users/simon.janes/Library/Caches/Homebrew/downloads/97792fcafb6c7c22d2efb7e811fb16de830a085fbc4f9a1c301baff70a29f79e--terraform--1.2.6.monterey.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/terragrunt/manifests/0.38.6
Already downloaded: /Users/simon.janes/Library/Caches/Homebrew/downloads/a80573f244b136138ed1be04ff265fe01d7c07337e5d0ebcefc0622983de4ba8--terragrunt-0.38.6.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/terragrunt/blobs/sha256:98d42ac51fbd86906aa2b3978739fc498b711dbdec2c92dc06a1f7b2a6799440
Already downloaded: /Users/simon.janes/Library/Caches/Homebrew/downloads/34b09ab104b08fcd015f030e6d055b224cba296b1c2067c243fe4fa259e6c90e--terragrunt--0.38.6.monterey.bottle.tar.gz
==> Installing dependencies for terragrunt: terraform
==> Installing terragrunt dependency: terraform
==> Pouring terraform--1.2.6.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/terraform/1.2.6: 6 files, 66.9MB
==> Installing terragrunt
==> Pouring terragrunt--0.38.6.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/terragrunt/0.38.6: 5 files, 26.6MB
==> Running `brew cleanup terragrunt`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
# Here is where I'm trying to refresh some providers:
❯ terragrunt init -upgrade
ERRO[0001] The currently installed version of Terraform (1.2.6) is not compatible with the version Terragrunt requires (1.2.5). 
ERRO[0001] Unable to determine underlying exit code, so Terragrunt will exit with error code 1 

This is somewhat frustrating because Terraform in Brew never has prior versions.

simon-janes-sp avatar Aug 02 '22 21:08 simon-janes-sp

My current work around on this is fiddling with tfenv to install 1.2.5 and tgenv to install the latest terragrunt. 📓

simon-janes-sp avatar Aug 02 '22 21:08 simon-janes-sp