summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/script/mod_no_gopath.txt
blob: ed91f5d42e5c8a8b1f1f84bf856c55764ce0b376 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# https://golang.org/issue/43938: 'go build' should succeed
# if GOPATH and the variables needed for its default value
# are all unset but not relevant to the specific command.

env HOME=''
env home=''
env GOPATH=''

go list -deps main.go
stdout '^io$'

-- main.go --
package main

import _ "io"