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

     1  env GO111MODULE=on
     2  
     3  # latest rsc.io/quote should be v1.5.2 not v1.5.3-pre1
     4  go get
     5  go list -m all
     6  stdout 'rsc.io/quote v1.5.2'
     7  
     8  # but v1.5.3-pre1 should be a known version
     9  go list -m -versions rsc.io/quote
    10  stdout '^rsc.io/quote v1.0.0 v1.1.0 v1.2.0 v1.2.1 v1.3.0 v1.4.0 v1.5.0 v1.5.1 v1.5.2 v1.5.3-pre1$'
    11  
    12  -- go.mod --
    13  module x
    14  
    15  -- x.go --
    16  package x
    17  import _ "rsc.io/quote"
    18  
    19  

View as plain text