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

     1  env GO111MODULE=on
     2  
     3  go get rsc.io/fortune
     4  go list -f '{{.Target}}' rsc.io/fortune
     5  ! stdout fortune@v1
     6  stdout 'fortune(\.exe)?$'
     7  
     8  go get rsc.io/fortune/v2
     9  go list -f '{{.Target}}' rsc.io/fortune/v2
    10  ! stdout v2
    11  stdout 'fortune(\.exe)?$'
    12  
    13  -- go.mod --
    14  module m
    15  

View as plain text