...

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

Documentation: cmd/go/testdata/script

     1env GOWORK=stop.work
     2! go list a # require absolute path
     3! stderr panic
     4env GOWORK=doesnotexist
     5! go list a
     6! stderr panic
     7
     8env GOWORK=$GOPATH/src/stop.work
     9go list -n a
    10go build -n a
    11go test -n a
    12
    13-- stop.work --
    14go 1.18
    15
    16use ./a
    17-- a/a.go --
    18package a
    19-- a/a_test.go --
    20package a
    21-- a/go.mod --
    22module a
    23
    24go 1.18

View as plain text