cmd/go: require and replace doesn't seem to like uppercase #31437
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
I was trying to use a submodule under a relative path and set up the go.mod to do a replace like in https://stackoverflow.com/questions/52079662/go-get-cannot-find-local-packages-when-using-modules
In my case the github organisation name has an uppercase in it. So think
github.com/Org/repo/proj/submod
But the error when I did ago build
from the top-level came out with:build github.com/org/repo/proj: cannot load github.com/org/repo/proj/submod: cannot find module providing package github.com/org/repo/proj/submod
I then changed the require and replace statements in the top-level go.mod to refer to the submodule with the all-lowercase and then it worked.
go version go1.12.1 linux/amd64
Issue similar to #26208 and #27157
The text was updated successfully, but these errors were encountered: