...

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

Documentation: cmd/go/testdata/script

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

View as plain text