...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3go get x
     4go list -m all
     5stdout 'rsc.io/breaker v2.0.0\+incompatible'
     6
     7cp go.mod2 go.mod
     8go get rsc.io/breaker@7307b30
     9go list -m all
    10stdout 'rsc.io/breaker v2.0.0\+incompatible'
    11
    12go get rsc.io/breaker@v2.0.0
    13go list -m all
    14stdout 'rsc.io/breaker v2.0.0\+incompatible'
    15
    16-- go.mod --
    17module x
    18
    19-- go.mod2 --
    20module x
    21require rsc.io/breaker v1.0.0
    22
    23-- x.go --
    24package x
    25import "rsc.io/breaker"
    26var _ = breaker.XX

View as plain text