Last active
October 17, 2018 10:02
-
-
Save ankh2054/7de22eaedfb1b8c5398cfd0a49ebbee9 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# get and unpack golang | |
curl -O https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz | |
## create the goApps directory, set GOPATH, and put it on PATH | |
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bash_profile | |
echo "export GOPATH=$HOME/go" >> ~/.bash_profile | |
echo "export GOBIN=$HOME/go/bin" >> ~/.bash_profile | |
source ~/.bash_profile | |
echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.bash_profile | |
source ~/.bash_profile | |
# Install DEP | |
go get github.com/golang/dep | |
cd $GOPATH/src/github.com/golang/dep | |
go install ./... | |
# Create go bin directory | |
mkdir -p $HOME/go/bin | |
## get the code and move into repo | |
mkdir -p $GOPATH/src/github.com/cosmos | |
cd $GOPATH/src/github.com/cosmos | |
git clone https://github.com/cosmos/cosmos-sdk | |
cd cosmos-sdk && git checkout master | |
## build | |
git checkout master | |
make get_tools | |
make get_vendor_deps | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment