...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3# Download modules to avoid stderr chatter
     4go mod download example.com@v1.0.0
     5go mod download example.com/newcycle/a@v1.0.0
     6go mod download example.com/newcycle/a@v1.0.1
     7go mod download example.com/newcycle/b@v1.0.0
     8
     9go mod init m
    10! go get example.com/newcycle/a@v1.0.0
    11cmp stderr stderr-expected
    12
    13-- stderr-expected --
    14go: example.com/newcycle/a@v1.0.0 indirectly requires example.com/newcycle/a@v1.0.1, not example.com/newcycle/a@v1.0.0

View as plain text