|
| 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 |
0 commit comments