Building from the source
You will need the latest version of the Go programming language.
Check go is installed
which go go version
git clone https://gitlab.com/aquachain/aquachain cd aquachain make ./bin/aquachain version
Downloading The Source
git clone https://gitlab.com/aquachain/aquachain cd aquachain
If you are contributing, you will want to 'fork' the main repo on github, and add your fork like so, changing
patch-1 to whatever you need:
git remote add fork email@example.com:yourname/aquachain.git git remote -v # check remotes git checkout master git checkout -b patch-1
When done making commits, use
git push fork patch-1 and either open a pull request or ask to merge.
During development on your branch there may be many commits on the
master branch. You can re-synchronize by using
git pull -r origin master or
git rebase -i to avoid needing Merge commits.
In the base directory of the repository, you can run a variety of 'make' targets.
When finished compiling, they are in the
Available make targets on linux (may be outdated)
all aquachain-nocgo cross install static all-musl aquaminer devtools lint test all-static aquastrat docker-run musl test-musl aquachain clean generate race usb
Below is how releases were* made, with Docker and xgo. Here we build only amd64 targets, Windows, Linux, OSX (darwin).
Since we switched to pure go, it has been even easier. (
make clean cross hash package)
xgo -out aquachain-$VERS --remote https://gitlab.com/aquachain/aquachain --branch master --pkg cmd/aquachain --targets='*/amd64' gitlab.com/aquachain/aquachain` Then zip:
for i in aquachain-$VERS-*; do zip $i.zip $i; done
sha256sum * | grep -v zip