cmd/go: error not reported for packages in vendor/ in module mode, without vendoring #37169
Comments
The go/src/cmd/go/internal/load/pkg.go Lines 1415 to 1418 in 1c241d2 But accepting |
Hm, I'm on the "it may just be confusing" side: my intuition is either
or better |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, also reproduces with 1.14rc1.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Created a regular package in a directory named
vendor
, not created withgo mod vendor
, not using-mod=vendor
.What did you expect to see?
Errors reported for packages in
vendor/
when-mod=vendor
is not active.These are being treated as regular packages. Other modules won't be able to import these packages, since vendor directories are excluded from module zip files.
What did you see instead?
go list
treats these like regular packages:cc @matloob @bcmills
The text was updated successfully, but these errors were encountered: