Having trouble importing/ go get Bcrypt

278 views
Skip to first unread message

Richard Lee

unread,
Jul 31, 2014, 2:43:20 PM7/31/14
to golan...@googlegroups.com
I am currently trying to install Bcrypt so that I may use it to secure passwords, but when I do:

go get code.google.com/p/go.crypto/
or
go get code.google.com/p/go.crypto/bcrypt

I get an error:

go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/go.crypto/bcrypt: exec: "hg": executable file not found in $PATH

If anyone have any ideas of why this may be, I'd appreciate it, thanks.

seppo...@gmail.com

unread,
Jul 31, 2014, 2:49:16 PM7/31/14
to golan...@googlegroups.com
You need to install mercurial (http://mercurial.selenic.com/) otherwise you can get the repository which is hosted ond code.google.com.

peterGo

unread,
Jul 31, 2014, 3:05:59 PM7/31/14
to golan...@googlegroups.com
Richard,

It's looking for Mercurial (hg). Install it.

Install Mercurial, if needed
http://golang.org/doc/install/source#mercurial

Peter

Richard Lee

unread,
Jul 31, 2014, 3:13:13 PM7/31/14
to golan...@googlegroups.com
Thanks, Peter. I was unaware what Mercurial was.
Reply all
Reply to author
Forward
0 new messages