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
go get https://github.com/user/repo should work #30913
Comments
Please read |
Yes, I'm not saying this isn't how it's meant to be working right now, I'm saying this is how I expect it to work as a new user of Go. |
Is there something in the |
Anyway, I don't expect to change anyone's opinion, just pointing this out. Maybe you don't experience this, maybe you do. I think I'm far from the only person to expect https:// http:// git:// protocols to work when writing an url (even if in that case it represents an import path). Also most people don't read the go help/man pages (which could be formatted better BTW), but google the issue they are having and/or follow a tutorial / classes. In my case I don't use go, just wanted to use a go-only library for a quick little project. |
Thanks for providing additional information and context. It's helpful to finding out if there's something we can do to make an improvement. |
I'm closing this as I don't think this is going to change and telling me to read the documentation is a bit disrespectful. To be honest that's exactly the reaction I expected. |
I'm sorry that you feel that the replies here were disrespectful. I know that was not the intent. Unfortunately it's not really possible to use a complex system like Go without reading any documentation. That is not a goal of ours. |
Agree with OP this should work. |
At a minimum go could suggest a corrected command |
Complex systems often use dependencies, and sometimes those dependencies are poorly or improperly documented. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?macOS / amd64 (this applies to all platforms) (and I don't like giving out my local user name)
What did you do?
go get https://github.com/cloudflare/mitmengine
What did you expect to see?
Nothing, just having the dependency added.
What did you see instead?
An error:
I'm not sure what's the rationale behind this (it actually goes through the git protocol probably), but as an user I expect to be able to copy/paste from Chrome and have it work without removing the https:// everytime.
Thanks.
The text was updated successfully, but these errors were encountered: