...

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

Documentation: cmd/go/testdata/script

     1# Regression test for https://go.dev/issue/58767:
     2# with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a
     3# package named "main" panicked in modload.MainModules.GoVersion.
     4
     5env GO111MODULE=off
     6cd example
     7go list example/m
     8
     9-- example/go.work --
    10go 1.21
    11-- example/m/main.go --
    12package main
    13func main() {}

View as plain text