From 9670e81c2e776b4781bc4cecddf45052ebf0afe6 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 5 Mar 2019 08:51:44 -0500 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Jay Conrod --- src/cmd/nm/nm_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cmd/nm/nm_test.go') 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) -- cgit v1.3