There is significant overlap between replace directives and the vendor directory, and users sometimes conflate the two (#29079 (comment)).
Since go mod vendor removes and replaces the entire contents of the vendor directory, it will fail (or at least produce very confusing behavior) if a replace directive points into vendor. We should detect that condition explicitly and emit a useful error.
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: