Skip to content

Commit

Permalink
Merge pull request #1483 from w3st3ry/envtest-darwin-arm-condition
Browse files Browse the repository at this point in the history
🌱 Add darwin arch condition for envtest script
  • Loading branch information
k8s-ci-robot committed Apr 19, 2021
2 parents 7ef2da0 + 5379eaa commit 4aecab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/setup-envtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function fetch_envtest_tools {
goarch="$(go env GOARCH)"
goos="$(go env GOOS)"

if [[ "$goos" != "linux" && "$goos" != "darwin" ]]; then
echo "OS '$goos' not supported. Aborting." >&2
if [[ ("$goos" != "linux" && "$goos" != "darwin") || ("$goos" == "darwin" && "$goarch" != "amd64") ]]; then
echo "OS '$goos' with '$goarch' arch is not supported. Aborting." >&2
return 1
fi

Expand Down

0 comments on commit 4aecab5

Please sign in to comment.