aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_module_when_error.txt
blob: 844164cd6a27628c9061dc3c59ffb989e8e714a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# The Module field should be populated even if there is an error loading the package.

env GO111MODULE=on

go list -e -f {{.Module}}
stdout '^mod.com$'

-- go.mod --
module mod.com

go 1.16

-- blah.go --
package blah

import _ "embed"

//go:embed README.md
var readme string