Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: require and replace doesn't seem to like uppercase #31437
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
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
This message is saying "build : cannot load : reason". It sounds like (1) your go.mod in github.com/org/repo says 'module github.com/org/repo' with lowercase org, and (2) github.com/org/repo/proj contains a Go import of "github.com/org/repo/proj/submod", again with lowercase org.
What matters is what's in the go.mod file and what is in the import statements. It sounds like they are both lowercase.
Without details it's hard to say more.
If the case in the