src/cmd/go/testdata/script/work_empty_panic_GOPATH.txt
raw| 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 | |
| 5 | env GO111MODULE=off |
| 6 | cd example |
| 7 | go list example/m |
| 8 | |
| 9 | -- example/go.work -- |
| 10 | go 1.21 |
| 11 | -- example/m/main.go -- |
| 12 | package main |
| 13 | func main() {} |