Skip to content
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: support "get" from SSH github URLs #9300

Closed
ghost opened this issue Dec 13, 2014 · 2 comments
Closed

cmd/go: support "get" from SSH github URLs #9300

ghost opened this issue Dec 13, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 13, 2014

If one has configured a SSH push URL in their .git/config (git@github.com:user/repo.git), go get will refuse to update the repository.

~/gocode/src/github.com/opennota/websocket $ go get -u
package github.com/opennota/websocket: /home/xxx/gocode/src/github.com/opennota/websocket
is from git@github.com:opennota/websocket.git,
should be from https://github.com/opennota/websocket

$ go version
go version go1.4 linux/amd64 
@adg adg changed the title go get: support SSH github URLs cmd/go: support "get" from SSH github URLs Dec 14, 2014
@adg
Copy link
Contributor

adg commented Dec 14, 2014

I'm inclined to say: if you used git to clone the repo in the first place, you should use git to update it.

Why not just configure your github ssh remote as something other than 'origin' ?

@ghost
Copy link
Author

ghost commented Dec 15, 2014

Well, perhaps this will solve the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants