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: go get seems to require Hg on Windows, git not sufficient #11444

Closed
buchs-kevin opened this issue Jun 28, 2015 · 5 comments
Closed

cmd/go: go get seems to require Hg on Windows, git not sufficient #11444

buchs-kevin opened this issue Jun 28, 2015 · 5 comments

Comments

@buchs-kevin
Copy link

Running on Win7 with latest Go installation and I have git installed. When I try to run go get, I get an error message saying that Mercurial is not installed. The documentation to which the error message refers indicates that git is one of the available source code control options. Here is the transcript:

C:\Users\buchs\Documents\Programming\Go>go get code.google.com/p/go-imap/go1/imap
go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/go-imap/go1/imap: exec: "hg": executable file not found in %PATH%

C:\Users\buchs\Documents\Programming\Go>git
usage: git [--version] [--help] [-C ] [-c name=value]
...

@buchs-kevin
Copy link
Author

Once I installed Mercurial, the go get command succeeded.

@Thomasdezeeuw
Copy link
Contributor

That is because code.google.com/p/go-imap work with Mercurial rather then Git. So you need Mercurial (Hg) to get the source code. Go can't do without Mercurial in this case.

@mikioh mikioh changed the title go get seems to require Hg on Windows, git not sufficient cmd/go: go get seems to require Hg on Windows, git not sufficient Jun 28, 2015
@buchs-kevin
Copy link
Author

This page https://github.com/golang/go/wiki/GoGetTools is worded to suggest that having one of the tools is sufficient. It should be reworded.

@bradfitz
Copy link
Contributor

Updated, not that I think it's necessary.

@buchs-kevin
Copy link
Author

Don't you wonder who should be the judge of necessity of clarity of documentation: an experienced user who maintains the documentation or a new user who depends upon the accuracy of the information on the documentation?

@golang golang locked and limited conversation to collaborators Jun 28, 2016
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

4 participants