Skip to content

Commit

Permalink
Automatically fallback to darwin/amd64 for Terraform versions before …
Browse files Browse the repository at this point in the history
…1.0.2

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.
  • Loading branch information
bflad committed Apr 22, 2024
1 parent a75f1a3 commit 5d93a1d
Show file tree
Hide file tree
Showing 4 changed files with 9,402 additions and 9,425 deletions.
Loading

0 comments on commit 5d93a1d

Please sign in to comment.