Text file src/cmd/go/testdata/script/get_legacy.txt

     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  env GO111MODULE=off
     9  
    10  env GOPATH=$WORK/tmp/d1
    11  go get vcs-test.golang.org/git/modlegacy1-old.git/p1
    12  go list -f '{{.Deps}}' vcs-test.golang.org/git/modlegacy1-old.git/p1
    13  stdout 'new.git/p2' # old/p1 should depend on new/p2
    14  ! stdout new.git/v2/p2 # old/p1 should NOT depend on new/v2/p2
    15  go build vcs-test.golang.org/git/modlegacy1-old.git/p1 vcs-test.golang.org/git/modlegacy1-new.git/p1
    16  ! stdout .
    17  
    18  env GOPATH=$WORK/tmp/d2
    19  
    20  rm $GOPATH
    21  go get github.com/rsc/vgotest5
    22  go get github.com/rsc/vgotest4
    23  go get github.com/myitcv/vgo_example_compat
    24  
    25  rm $GOPATH
    26  go get github.com/rsc/vgotest4
    27  go get github.com/rsc/vgotest5
    28  go get github.com/myitcv/vgo_example_compat
    29  
    30  rm $GOPATH
    31  go get github.com/rsc/vgotest4 github.com/rsc/vgotest5
    32  go get github.com/myitcv/vgo_example_compat
    33  
    34  rm $GOPATH
    35  go get github.com/rsc/vgotest5 github.com/rsc/vgotest4
    36  go get github.com/myitcv/vgo_example_compat
    37  
    38  rm $GOPATH
    39  go get github.com/myitcv/vgo_example_compat
    40  go get github.com/rsc/vgotest5 github.com/rsc/vgotest4
    41  
    42  rm $GOPATH
    43  go get github.com/myitcv/vgo_example_compat github.com/rsc/vgotest4 github.com/rsc/vgotest5
    44  
    45  rm $GOPATH
    46  go get github.com/myitcv/vgo_example_compat github.com/rsc/vgotest5 github.com/rsc/vgotest4
    47  
    48  rm $GOPATH
    49  go get github.com/rsc/vgotest4 github.com/myitcv/vgo_example_compat github.com/rsc/vgotest5
    50  
    51  rm $GOPATH
    52  go get github.com/rsc/vgotest4 github.com/rsc/vgotest5 github.com/myitcv/vgo_example_compat
    53  
    54  rm $GOPATH
    55  go get github.com/rsc/vgotest5 github.com/myitcv/vgo_example_compat github.com/rsc/vgotest4
    56  
    57  rm $GOPATH
    58  go get github.com/rsc/vgotest5 github.com/rsc/vgotest4 github.com/myitcv/vgo_example_compat
    59  

View as plain text