github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_query_exclude.txt (about)

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