As we moved from dep to go modules, you have several step to follow to build this project.
You need to have go1.11 at least. To make it work with go 1.11:
- You can keep this project in your
GOPATH
. - Activate the
GO111MODULE
running:
export GO111MODULE=on
You can also set a proper env with https://direnv.net/.
You can easily build this project using go1.12:
- You can clone this project outside your
GOPATH
- You will still need to activate the
GO111MODULE
:
export GO111MODULE=on # Can be on or auto if you build erlenmeyer outside your GOPATH
You also need to have gofmt
(coming with you go setup) and golangci.
First init your project locally running:
make init
Then download the project dependencies
make dep
And finally build the dev version
make dev
A build
or release
build targets are also available.
If you get any issue during compilation reset you go.mod file from Github:
git checkout -- go.mod
To compile erlenmeyer release simply run:
make release
Run the dev compiled version:
./build/erlenmeyer --config /Path/to/erlenmeyer.yaml