cmd/go: go version -m shows that replace directive was ignored #39393
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
While attempting to follow the recommended way of tracking tool dependencies for a module, I discovered that the version of the tool installed didn't respect the
replace
directive in thego.mod
file.go.mod
:tools.go
:With these files in place, I installed the tool via:
Unfortunately,
go version -m …
indicates that the non-replaced version was installed rather than the replaced version.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: