Skip to content

Commit e674972

Browse files
committed
cmd/go: convert TestLegacyModGet to the script framework
I think this test needs to be split up eventually. It's one of the longest tests. Part of converting all tests to script framework to improve test parallelism. Updates #36320 Updates #17751 Change-Id: If2168fac040d78fd0ec3dcbdef2affd2a8f48f6d Reviewed-on: https://go-review.googlesource.com/c/go/+/214158 Reviewed-by: Jay Conrod <jayconrod@google.com>
1 parent 62ff72d commit e674972

File tree

2 files changed

+57
-69
lines changed

2 files changed

+57
-69
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# This test was converted from a test in vendor_test.go (which no longer exists).
2+
# That seems to imply that it's about vendoring semantics, but the test doesn't
3+
# use 'go -mod=vendor' (and none of the fetched repos have vendor folders).
4+
# The test still seems to be useful as a test of direct-mode go get.
5+
6+
[short] skip
7+
[!exec:git] skip
8+
9+
env GOPATH=$WORK/tmp/d1
10+
go get vcs-test.golang.org/git/modlegacy1-old.git/p1
11+
go list -f '{{.Deps}}' vcs-test.golang.org/git/modlegacy1-old.git/p1
12+
stdout 'new.git/p2' # old/p1 should depend on new/p2
13+
! stdout new.git/v2/p2 # old/p1 should NOT depend on new/v2/p2
14+
go build vcs-test.golang.org/git/modlegacy1-old.git/p1 vcs-test.golang.org/git/modlegacy1-new.git/p1
15+
! stdout .
16+
17+
env GOPATH=$WORK/tmp/d2
18+
19+
rm $GOPATH
20+
go get github.com/rsc/vgotest5
21+
go get github.com/rsc/vgotest4
22+
go get github.com/myitcv/vgo_example_compat
23+
24+
rm $GOPATH
25+
go get github.com/rsc/vgotest4
26+
go get github.com/rsc/vgotest5
27+
go get github.com/myitcv/vgo_example_compat
28+
29+
rm $GOPATH
30+
go get github.com/rsc/vgotest4 github.com/rsc/vgotest5
31+
go get github.com/myitcv/vgo_example_compat
32+
33+
rm $GOPATH
34+
go get github.com/rsc/vgotest5 github.com/rsc/vgotest4
35+
go get github.com/myitcv/vgo_example_compat
36+
37+
rm $GOPATH
38+
go get github.com/myitcv/vgo_example_compat
39+
go get github.com/rsc/vgotest5 github.com/rsc/vgotest4
40+
41+
rm $GOPATH
42+
go get github.com/myitcv/vgo_example_compat github.com/rsc/vgotest4 github.com/rsc/vgotest5
43+
44+
rm $GOPATH
45+
go get github.com/myitcv/vgo_example_compat github.com/rsc/vgotest5 github.com/rsc/vgotest4
46+
47+
rm $GOPATH
48+
go get github.com/rsc/vgotest4 github.com/myitcv/vgo_example_compat github.com/rsc/vgotest5
49+
50+
rm $GOPATH
51+
go get github.com/rsc/vgotest4 github.com/rsc/vgotest5 github.com/myitcv/vgo_example_compat
52+
53+
rm $GOPATH
54+
go get github.com/rsc/vgotest5 github.com/myitcv/vgo_example_compat github.com/rsc/vgotest4
55+
56+
rm $GOPATH
57+
go get github.com/rsc/vgotest5 github.com/rsc/vgotest4 github.com/myitcv/vgo_example_compat

src/cmd/go/vendor_test.go

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)