cmd/go: misleading error message with repeated folder name #51114
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes with 1.17.6
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
We have
github.com/MyAccount/my-repo
server/go.mod
starting with the linemodule github.com/MyAccount/my-repo/server
server/v0.0.2
go.mod
containing the linesInside the "client" project, we launched
(Sorry, can't give the full reproducible details of our private repo!)
What did you expect to see?
What did you see instead?
Note that the only unexpected bit is the repeated word at
server/server
.This seems misleading: when seeing this error message, we thought that the "wrong" path
github.com/MyAccount/my-repo/server/server/go.mod
was the cause of the build failure. Did we make a mistake somewhere in the repo name/module name/package name/folder name?We then realized that the root cause was only due to authentication difficulties with the go command using HTTPS or SSH to download the private repo.
After discussing this surprising error message with some Gophers, we now think the error message should not repeat the word "server" in the printed path.
The text was updated successfully, but these errors were encountered: