Created
July 14, 2014 21:12
-
-
Save heyalexej/473b650383dd4711ee02 to your computer and use it in GitHub Desktop.
install go through hg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://golang.org/doc/go1.2#go_tools_godoc | |
# Both binaries are still included with the distribution, but the source code | |
# for the godoc and vet commands has moved to the go.tools subrepository." | |
# a handful of nifty commands for installation through hg | |
export GOBIN=~/bin | |
export GOPATH=~/gocode | |
mkdir -p /tmp/upstream | |
mkdir -p ~/gocode | |
cd /tmp/upstream | |
hg clone https://code.google.com/p/go/ | |
hg update release | |
cd src | |
./all.bash | |
go get code.google.com/p/go.tools/cmd/godoc | |
go get code.google.com/p/go.tools/cmd/vet | |
go get code.google.com/p/go.tools/cmd/cover |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment