cmd/go: v2 module in sub-sub-directory cannot be found #38592
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It's the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to get the latest (and single) release of my module in the
v2
sub-directory. The package itself already is in a sub-directory because the repo also contains implementations in other languages.I can see that it is very uncommon to start the v2-releases at v2.1.0 but this is a port and I have to orient my versioning on upstream.
What did you expect to see?
That
go.mod
contains an entryWhat did you see instead?
Error message on command line
I also tried
which does ignore that the module is located in a sub-directory.
Meanwhile it works if I remove the
require
from mygo.mod
andgo get
it. It will then though insert the following entryThis even points at the correct commit at which tag
v.2.1.0
is attached. But still that does not look correct.The text was updated successfully, but these errors were encountered: