Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created July 14, 2014 21:12
Show Gist options
  • Save heyalexej/473b650383dd4711ee02 to your computer and use it in GitHub Desktop.
Save heyalexej/473b650383dd4711ee02 to your computer and use it in GitHub Desktop.
install go through hg
# 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