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

     1  # https://golang.org/issue/43938: 'go build' should succeed
     2  # if GOPATH and the variables needed for its default value
     3  # are all unset but not relevant to the specific command.
     4  
     5  env HOME=''
     6  env home=''
     7  env GOPATH=''
     8  
     9  go list -deps main.go
    10  stdout '^io$'
    11  
    12  -- main.go --
    13  package main
    14  
    15  import _ "io"
    16  

View as plain text