Skip to content

Commit 4aecab5

Browse files
authored
Merge pull request #1483 from w3st3ry/envtest-darwin-arm-condition
🌱 Add darwin arch condition for envtest script
2 parents 7ef2da0 + 5379eaa commit 4aecab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/setup-envtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function fetch_envtest_tools {
6666
goarch="$(go env GOARCH)"
6767
goos="$(go env GOOS)"
6868

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

0 commit comments

Comments
 (0)