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