aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-03-05 08:51:44 -0500
committerBryan C. Mills <bcmills@google.com>2019-03-05 18:21:29 +0000
commit9670e81c2e776b4781bc4cecddf45052ebf0afe6 (patch)
tree39085167c8c83b96e423334cfa67c62d973e96ab /src/cmd/nm
parente44a031651d042107d446b4038a70c6da763e2d5 (diff)
downloadgo-9670e81c2e776b4781bc4cecddf45052ebf0afe6.tar.gz
go-9670e81c2e776b4781bc4cecddf45052ebf0afe6.zip
all: add -mod=vendor to GOFLAGS in tests that execute 'go' commands within std or cmd
Updates #30228 Updates #30240 Updates #30241 Change-Id: Idc311ba77e99909318b5b86f8ef82d4878f73e47 Reviewed-on: https://go-review.googlesource.com/c/go/+/165378 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/nm')
-rw-r--r--src/cmd/nm/nm_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/nm/nm_test.go b/src/cmd/nm/nm_test.go
index 8176ddd7f4..82f4235510 100644
--- a/src/cmd/nm/nm_test.go
+++ b/src/cmd/nm/nm_test.go
@@ -30,6 +30,8 @@ func testMain(m *testing.M) int {
return 0
}
+ testenv.SetModVendor()
+
tmpDir, err := ioutil.TempDir("", "TestNM")
if err != nil {
fmt.Println("TempDir failed:", err)