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

     1  env GO111MODULE=on
     2  
     3  go mod init example.com/foo
     4  
     5  # 'go get bar@none' should be a no-op if module bar is not active.
     6  go get example.com/bar@none
     7  go list -m all
     8  ! stdout example.com/bar
     9  
    10  go get example.com/bar@none
    11  go list -m all
    12  ! stdout example.com/bar
    13  

View as plain text