Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Latest commit

 

History

History
69 lines (45 loc) · 1.33 KB

BUILDING.md

File metadata and controls

69 lines (45 loc) · 1.33 KB

Build erlernmeyer

As we moved from dep to go modules, you have several step to follow to build this project.

Requirements

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.

Init, dependancies and dev mode

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

Release

To compile erlenmeyer release simply run:

make release

Run

Run the dev compiled version:

./build/erlenmeyer --config /Path/to/erlenmeyer.yaml