Skip to main content

Build and Test Osmosis Source Code

Install Go 1.22

Currently, Osmosis uses Go 1.22 to compile the code.

Install Go 1.22 by following instructions there.

Verify the installation by typing go version in your terminal.

$ go version
go version go1.22.4 darwin/amd64

Build Osmosis

In order to build Osmosis you need the source code. Either download the source of a release or clone the git repository.

Build Osmosis from the source code:

cd osmosis
make build

After building, you should see a new executable file osmosis/build/osmosisd.

Run Tests

Run tests from the source code:

cd osmosis
make test