diff options
| author | Jay Conrod <jayconrod@google.com> | 2019-12-04 18:01:05 -0500 |
|---|---|---|
| committer | Jay Conrod <jayconrod@google.com> | 2019-12-04 23:54:27 +0000 |
| commit | 709dbd28708eab97993ca06adea74be392c05c1c (patch) | |
| tree | 4115764b0d370ec369c9ebaee42b367c9b95a0a4 /src | |
| parent | ae2e2446c22ce84c275543e90036785aab194fb1 (diff) | |
| download | go-709dbd28708eab97993ca06adea74be392c05c1c.tar.xz | |
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 <jayconrod@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/testdata/script/list_constraints.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/list_constraints.txt b/src/cmd/go/testdata/script/list_constraints.txt index 665670e190..7115c365f0 100644 --- a/src/cmd/go/testdata/script/list_constraints.txt +++ b/src/cmd/go/testdata/script/list_constraints.txt @@ -3,6 +3,7 @@ # Linux and cgo files should be included when building in that configuration. env GOOS=linux +env GOARCH=amd64 env CGO_ENABLED=1 go list -f '{{range .GoFiles}}{{.}} {{end}}' stdout '^cgotag.go empty.go suffix_linux.go tag.go $' |
