Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: Download and install terraform from the hasicorp.com release page instead of using
go install
Any version of
terraform
after version 1.9 will no longer install usinggo install
due to error:Instead we can install directly from the hashicorp releases page.
The release page provides no
current
orlatest
symlink so the best proxy I found wasto use the latest tag in their github releases and download that version from their
release page. This is a zip archive of the
terraform
binary so we need to download unzip andensure the permissions are correct.
The
unzip
command was used for this so it too has been added as a depenendency.For completeness it was added to Wolfi and MacOS but it is only used for Linux installs.
The resulting
terraform
binary is saved in~/bin/
just likechainctl