mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
Automatically fallback to darwin/amd64 for Terraform versions before 1.0.2 (#409)
Reference: https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/ GitHub hosted runners for `macos-latest` are automatically being upgraded to macOS 14 and arm64 architecture machines. Any workflows that are using the upgraded runner can return an error such as: ``` Error: Terraform version 0.12.* not available for darwin and arm64 ``` This adds special case logic to automatically fallback to darwin/amd64 when darwin/arm64 is detected and the version is below 1.0.2, which is the first version that had darwin/arm64 release assets. macOS should emulate and run the amd64 binaries until Apple or GitHub removes the emulation support.
This commit is contained in:
parent
a75f1a3cce
commit
22013f72bd
5 changed files with 3862 additions and 3878 deletions
|
|
@ -23,7 +23,8 @@
|
|||
"@actions/github": "^6.0.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@hashicorp/js-releases": "^1.7.2"
|
||||
"@hashicorp/js-releases": "^1.7.2",
|
||||
"semver": "^7.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue