blob: a64a8e10866a46989e32b8d371e696afc92f0215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
env GO111MODULE=on
# get excluded version
cp go.mod1 go.mod
! go get rsc.io/quote@v1.5.0
stderr 'rsc.io/quote@v1.5.0 excluded'
# get non-excluded version
cp go.mod1 go.mod
go get rsc.io/quote@v1.5.1
stderr 'rsc.io/quote v1.5.1'
# get range with excluded version
cp go.mod1 go.mod
go get rsc.io/quote@>=v1.5
go list -m ...quote
stdout 'rsc.io/quote v1.5.[1-9]'
-- go.mod1 --
module x
exclude rsc.io/quote v1.5.0
-- x.go --
package x
import _ "rsc.io/quote"
|