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

     1  env GO111MODULE=on
     2  
     3  env GOPATH=$WORK${/}invalid-gopath
     4  
     5  go list -m
     6  stdout '^example.com$'
     7  
     8  go list
     9  stdout '^example.com$'
    10  
    11  -- go.mod --
    12  module example.com
    13  
    14  go 1.13
    15  -- main.go --
    16  package main
    17  
    18  func main() {}
    19  
    20  -- $WORK/invalid-gopath
    21  This is a text file, not a directory.
    22  

View as plain text