go by following the official docs. Remember to set your
$PATH environment variables, for example:
mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.bash_profile source ~/.bash_profile
::: tip Go 1.12+ is required for the Spend SDK. :::
Install the binaries
Next, let's install the latest version of Spend. Make sure you
git checkout the correct released version.
mkdir -p $GOPATH/src/github.com/cosmos cd $GOPATH/src/github.com/cosmos git clone -b <latest-release-tag> https://github.com/spend/Spendchain cd spend && make build-linux cd build # Copy binaries to bin so you can use them from terminal cp spend /bin/ cp spendcli /bin/spendcli
NOTE: If you have issues at this step, please check that you have the latest stable version of GO installed.
That will install the
spendcli binaries. Verify that everything is OK:
$ spend version --long $ spendcli version --long
spendcli for instance should output something similar to:
cosmos-sdk: 0.33.0 git commit: 7b4104aced52aa5b59a96c28b5ebeea7877fc4f0 build tags: netgo ledger go version go1.12 linux/amd64
Build tags indicate special features that have been enabled in the binary.
|netgo||Name resolution will use pure Go code|
|ledger||Ledger devices are supported (hardware wallets)|
Install binary distribution via snap (Linux only)
Do not use snap at this time to install the binaries for production until we have a reproducible binary system.
To test any changes made in the SDK or Tendermint, a
replace clause needs to be added to
go.mod providing the correct import path.
- Make appropriate changes
replace github.com/cosmos/cosmos-sdk => /path/to/clone/cosmos-sdkto
make clean installor
make clean build
- Test changes