Skip to content

Commit 709dbd2

Browse files
author
Jay Conrod
committed
cmd/go: fix list_constraints test on non-amd64 platforms
Test set GOOS to linux and darwin without setting GOARCH. darwin is not a valid GOOS for all architectures we test. Fixes #35976 Change-Id: I4da2ebcbf9ad52e07bcc1632b48fcfdbc49b1289 Reviewed-on: https://go-review.googlesource.com/c/go/+/209900 Run-TryBot: Jay Conrod <[email protected]> Reviewed-by: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent ae2e244 commit 709dbd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/testdata/script/list_constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# Linux and cgo files should be included when building in that configuration.
55
env GOOS=linux
6+
env GOARCH=amd64
67
env CGO_ENABLED=1
78
go list -f '{{range .GoFiles}}{{.}} {{end}}'
89
stdout '^cgotag.go empty.go suffix_linux.go tag.go $'

0 commit comments

Comments
 (0)