...

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

Documentation: cmd/go/testdata/script

     1! go work use
     2stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$'
     3
     4! go work use .
     5stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$'
     6
     7! go work edit
     8stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$'
     9
    10! go work edit -go=1.18
    11stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$'
    12
    13! go work sync
    14stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$'
    15
    16-- go.mod --
    17module example
    18go 1.18
    19-- README.txt --
    20There is no go.work file here.

View as plain text