cmd/go: confusing docs for -dropreplace #34930
Labels
Documentation
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I wanted to programmatically drop all replace directives for a particular module.
Based on the docs, I initially thought just using
-dropreplace=old
, with no@v
, would drop all replace directives for that module path:It sounds from this like omitting the
@v
from a-dropreplace
flag will make it apply to (drop) all versions with the old module path. What it actually does is drop any replace directives for that module path that do not specify a version.It might be worth clarifying the docs a little.
The text was updated successfully, but these errors were encountered: