]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add -d flag to mod_get_test
authorJay Conrod <jayconrod@google.com>
Tue, 21 Jan 2020 22:50:36 +0000 (14:50 -0800)
committerJay Conrod <jayconrod@google.com>
Wed, 22 Jan 2020 00:45:41 +0000 (00:45 +0000)
'go get all' was run in this test without -d. This caused some std
packages to be reinstalled if the test is run in a slightly different
configuration than make.bash was run. run.bash would fail in some
situations because of this. Nothing in the cmd/go tests should modify
installed std or cmd packages.

Updates #35459

Change-Id: Idd259a27d55502923b7fc54f361a77f0ac11eea2
Reviewed-on: https://go-review.googlesource.com/c/go/+/215721
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/testdata/script/mod_get_test.txt

index f921168ad4f85806d5069698e4d4e24fffb7e2f7..3680ca273d98f20b1dee02333703e1227837e67f 100644 (file)
@@ -33,7 +33,7 @@ grep 'rsc.io/quote v1.5.1$' go.mod
 
 # 'go get all' should consider test dependencies with or without -t.
 cp go.mod.empty go.mod
-go get all
+go get -d all
 grep 'rsc.io/quote v1.5.2$' go.mod
 
 -- go.mod.empty --