Skip to content

Commit

Permalink
Fallback to amd64 binaries on Apple Silicon macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
myhro committed Dec 27, 2023
1 parent e8c39fe commit 60756a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ func (t *Tool) SetRuntime(arch string, os string) error {
t.OS, osOk = tables.OS[t.Name][os][arch]

if !archOk || !osOk {
if arch == "arm64" && os == "darwin" {
return t.SetRuntime("amd64", os)
}

return fmt.Errorf("no candidate for %v on %v/%v", t.Name, os, arch)
}

Expand Down

0 comments on commit 60756a3

Please sign in to comment.