| 1 |
! go work use |
| 2 |
stderr '^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 . |
| 5 |
stderr '^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 |
| 8 |
stderr '^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 |
| 11 |
stderr '^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 |
| 14 |
stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' |
| 15 |
|
| 16 |
-- go.mod -- |
| 17 |
module example |
| 18 |
go 1.18 |
| 19 |
-- README.txt -- |
| 20 |
There is no go.work file here. |