cmd/go: 'go get -u' for git submodules under a custom import path fails #21841
Labels
FrozenDueToAge
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
)?go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
Yes, go1.9 is the latest release
What operating system and processor architecture are you using (
go env
)?What did you do?
motemen.github.io/test-repository
is a custom import path and its content is at https://github.com/motemen/test-repository. The repository has a submodulego-nuts
, which is pointing at https://github.com/motemen/go-nuts.What did you expect to see?
a successful
go get -u
.What did you see instead?
go get -u -v
's output:It seems that
gitRemoteRepo
usesgit config remote.origin.url
, which reports only the submodule's remote, rather than the parent repository's remote. But in this case we want the parent repository's one.The text was updated successfully, but these errors were encountered: