src/cmd/go/testdata/script/work_vendor_empty.txt
raw| 1 | go work vendor |
| 2 | stderr 'go: no dependencies to vendor' |
| 3 | ! exists vendor/modules.txt |
| 4 | ! go list . |
| 5 | stderr 'go: no modules were found in the current workspace' |
| 6 | mkdir vendor |
| 7 | mv bad_modules.txt vendor/modules.txt |
| 8 | ! go list . |
| 9 | stderr 'go: no modules were found in the current workspace' |
| 10 | |
| 11 | -- bad_modules.txt -- |
| 12 | # a/module |
| 13 | a/package |
| 14 | -- go.work -- |
| 15 | go 1.21 |
| 16 |