Skip to content

Commit 71bbffb

Browse files
author
Jay Conrod
committed
cmd/go: add -d flag to mod_get_test
'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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent fb8cdb7 commit 71bbffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ grep 'rsc.io/quote v1.5.1$' go.mod
3333

3434
# 'go get all' should consider test dependencies with or without -t.
3535
cp go.mod.empty go.mod
36-
go get all
36+
go get -d all
3737
grep 'rsc.io/quote v1.5.2$' go.mod
3838

3939
-- go.mod.empty --

0 commit comments

Comments
 (0)