tgswitch
tgswitch copied to clipboard
Add Macbook M1 Version Check
Terragrunt binaries for darwin/arm64
started being built as of v0.28.12.
Starting this release, we will be publishing binaries for the
darwin/arm64
(compatible with Mac M1 chips) andlinux/arm64
platforms.
Executing tgswitch
on any version before v0.28.12
should result in an incompatibility error, rather than downloading GitHub's generic 404 page source code and failing to execute.
Example to recreate on Macbook M1:
➜ tgswitch 0.28.11
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.28.11/terragrunt_darwin_arm64 to terragrunt_darwin_arm64
Downloading ...
249562 bytes downloaded.
Switched terragrunt to version "0.28.11"
➜ terragrunt -v
/usr/local/bin/terragrunt: line 7: syntax error near unexpected token `newline'
/usr/local/bin/terragrunt: line 7: `<!DOCTYPE html>'
➜ tgswitch 0.28.12
Downloading https://github.com/gruntwork-io/terragrunt/releases/download/v0.28.12/terragrunt_darwin_arm64 to terragrunt_darwin_arm64
Downloading ...
31663106 bytes downloaded.
Switched terragrunt to version "0.28.12"
➜ terragrunt -v
terragrunt version v0.28.12