Skip to content

Commit

Permalink
Merge pull request #161 from chrispruitt/temp-macos-m1-fix
Browse files Browse the repository at this point in the history
temp fix for macos on arm64 due to M1 chip
  • Loading branch information
warrensbox authored May 1, 2021
2 parents d0dd715 + 8480049 commit ab7a67e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ func Install(tfversion string, binPath string) {
goarch := runtime.GOARCH
goos := runtime.GOOS

// TODO: Workaround for macos arm64 since terraform doesn't have a binary for it yet
if goos == "darwin" && goarch == "arm64" {
goarch = "amd64"
}

/* check if selected version already downloaded */
fileExist := CheckFileExist(installLocation + installVersion + tfversion)

Expand Down
4 changes: 2 additions & 2 deletions vendor/golang.org/x/sys/unix/mkall.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab7a67e

Please sign in to comment.