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

     1  ! go build .
     2  stderr 'go: no modules were found in the current workspace; see ''go help work'''
     3  
     4  -- go.work --
     5  go 1.18
     6  -- go.mod --
     7  go 1.18
     8  
     9  module foo
    10  -- foo.go --
    11  package main
    12  
    13  func main() {}

View as plain text