cmd/go: module replacements have confusing (lack of) aliasing for package-level state #26607
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
If I replace two different modules with the same replacement (say, because I'm planning to merge a fork back into the original package), I expect the two import paths to actually refer to the same package, including the same package state.
However, that is currently not the case: instead, the program receives two distinct copies of the module that do not share state.
(It may be that my expectations are off, but if so, we should clarify the documentation.)
CC: @rsc @myitcv
The text was updated successfully, but these errors were encountered: