Skip to content

Instantly share code, notes, and snippets.

@bbeaudreault
Created November 21, 2016 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbeaudreault/c8a0ccceb4807bcc4752bf60b931bb8b to your computer and use it in GitHub Desktop.
Save bbeaudreault/c8a0ccceb4807bcc4752bf60b931bb8b to your computer and use it in GitHub Desktop.
Building basic vitess vtgate and vtctld
# May need to install the proper version (1.7+) of go before starting
export GOPATH=~/work
export PATH=$PATH:$GOPATH/bin
mkdir -p $GOPATH/src $GOPATH/bin $GOPATH/pkg
git clone git@github.com:youtube/vitess.git $GOPATH/src/github.com/youtube/vitess
cd $GOPATH/src/github.com/youtube/vitess
go get -u github.com/golang/lint/golint github.com/golang/mock/mockgen github.com/kardianos/govendor golang.org/x/tools/cmd/goimports honnef.co/go/unused/cmd/unused code.google.com/p/go.tools/cmd/cover
govendor sync
cd go/cmd
go install ./vtgate ./vtctld
# you should now have the vtgate and vtctld binaries
ls -al $GOPATH/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment