...

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

Documentation: cmd/go/testdata/script

     1# The Module field should be populated even if there is an error loading the package.
     2
     3env GO111MODULE=on
     4
     5go list -e -f {{.Module}}
     6stdout '^mod.com$'
     7
     8-- go.mod --
     9module mod.com
    10
    11go 1.16
    12
    13-- blah.go --
    14package blah
    15
    16import _ "embed"
    17
    18//go:embed README.md
    19var readme string

View as plain text