Skip to content

Commit

Permalink
Merge pull request #9 from carolynvs/gh-cli-m1
Browse files Browse the repository at this point in the history
Fix publish for the kubernetes-plugin
  • Loading branch information
carolynvs authored Apr 21, 2022
2 parents 5640afe + 7f42db3 commit 33fb401
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ func EnsureGitHubClient() {
TargetFileTemplate: target,
}

if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
// github doesn't publish arm64 binaries for mac, so fallback to the amd64 binary
opts.UrlTemplate = "https://github.com/cli/cli/releases/download/v{{.VERSION}}/gh_{{.VERSION}}_{{.GOOS}}_amd64{{.EXT}}"
opts.TargetFileTemplate = "gh_{{.VERSION}}_{{.GOOS}}_amd64/bin/gh{{.EXT}}"
}

err := archive.DownloadToGopathBin(opts)
mgx.Must(err)
}
Expand Down

0 comments on commit 33fb401

Please sign in to comment.