Created
November 21, 2016 19:47
-
-
Save bbeaudreault/c8a0ccceb4807bcc4752bf60b931bb8b to your computer and use it in GitHub Desktop.
Building basic vitess vtgate and vtctld
This file contains hidden or 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
# 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 [email protected]: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