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

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

View as plain text