New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: improve error message if remote repo does not support https #27088
Comments
I think this was always the behavior - https://tip.golang.org/doc/faq#git_https. Could you try the workaround suggested there and see if it works for you ? |
The
workaround does work. The error message may want to point to that documentation. |
Duplicate of #26134 |
@rasky @bcmills @rsc Can this be re-opened? While native support for non-https repos is one thing, this generic error message is totally useless and is showing up in additional contexts, hiding critical debugging information. For example here is a problem with Goland vs. the Go command (probably environment related, but other than "unknown revision", there's no useful information.) |
Reopening. |
There are a bunch of interrelated issues with private repos; I'm planning to revisit that whole cluster for 1.13. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bcmills it's cause |
@shoenig, we improved a lot of error messages for Go 1.13. Could you try out |
Actually, what VCS path is the server returning in the <meta name="go-import" content="code.corp.indeed.com/gophers/rlog git ssh://code.corp.indeed.com/gophers/rlog.git"> If your server is telling the (If you want better error messages from the |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?What did you do?
With go1.11, run go build with modules and got unexpected "unknown revision" errors.
First, the
go.mod
file:Now let's try to build it:
After lots of digging and head scratching, downloaded Go, modified the source to print more verbose logging in the modfetch package, and found the root cause:
Note that it is incorrect to assume the remote will support https. At least some enterprise internal git hosting infrastructures are locked down to support ssh only. This was a common complaint about the dep tool as well.
Also note this was impossible to diagnose without hacking on the Go source code. We probably shouldn't suppress that error message.
The text was updated successfully, but these errors were encountered: