Skip to content

Commit

Permalink
binfetcher: fix binary downloading for arm64 MacOS
Browse files Browse the repository at this point in the history
This patch updates the suffix used to fetch arm64 MacOS binaries
to match the naming scheme used to build releases.

Release note: None
  • Loading branch information
andyyang890 committed Jan 26, 2023
1 parent 9caf758 commit 2ac04f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/util/binfetcher/binfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ func (opts *Options) init() error {

goos := opts.GOOS
if opts.GOOS == "darwin" {
goos += "-10.9"
if opts.GOARCH == "arm64" {
goos += "-11.0"
} else {
goos += "-10.9"
}
} else if opts.GOOS == "windows" {
goos += "-6.2"
}
Expand Down

0 comments on commit 2ac04f7

Please sign in to comment.