Module's local transitive dependencies work only with explicit replace directive #57056
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
There are three local modules, with
top
depending onmiddle
, andmiddle
depending onbottom
What did you expect to see?
cd top && go run .
should succeedWhat did you see instead?
Doing what is suggested doesn't help:
What does help is explicitly adding
replace
directive totop/go.mod
:Requesting that a module keeps track of all its transitive local dependencies is IMHO a maintenance problem.
The text was updated successfully, but these errors were encountered: