cmd/go: emit an error in 'go mod vendor' if any replacement is in the vendor directory #29169
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
There is significant overlap between
replace
directives and thevendor
directory, and users sometimes conflate the two (#29079 (comment)).Since
go mod vendor
removes and replaces the entire contents of thevendor
directory, it will fail (or at least produce very confusing behavior) if areplace
directive points intovendor
. We should detect that condition explicitly and emit a useful error.(CC @jayconrod)
The text was updated successfully, but these errors were encountered: