blob: 1ae0d17844a8f662cf53ae5225216d70baa4de7b (
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
27
|
env GO111MODULE=on
env GOPROXY=$GOPROXY/quiet
# 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"
|