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

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

View as plain text