cmd/go: make -mod=vendor a noop in GOPATH mode #29665
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
@bcmills
Reproduces as of 2018-01-10 at HEAD.
In my build scripts I've added
-mod=vendor
for a project. This works great when outside of GOPATH. On a different computer that still has the source inside GOPATH, I get an error:build flag -mod=vendor only valid when using modules
This error seems like a mistake. I just want to tell
go
to use the vendor folder. If in GOPATH mode, it will already do that. But go mod mode currently requires a flag. Is there a situation where someone would pass in-mod=vendor
while in GOPATH mode and it would do something unexpected?This is a sub-issue of #27227, but perhaps it would be small and simple enough to make it in 1.12.
The text was updated successfully, but these errors were encountered: