- Go (check pinned version in go.mod)
- Mage
How to install Mage:
go install github.com/magefile/mage
This project uses Conventional Commits. This is automatically enforced by our tool Commitsar. Please make sure your commits follow this standard and are descriptive.
The API is created using oto. Please check out THIS article to understand how to use it.
All definition files are housed under api/definitions. To generate API endpoint defintions from this please run: make generate_oto
.
- Can't find
oto
binary: please runmake install_deps
.
For 3rd party tools such as oto
we use the go tools file approach. For consideration in the future is this project: https://github.com/go-modules-by-example/index/tree/master/017_using_gobin
Essentially boils down to this:
- add your tool as a dependency to
tools.go
- add the dependency to Install in
mage.go
and runmage install
Reasons
By using this approach we can version tools used in knit as a normal Go dependency.
Make sure your PATH points to GOBIN:
export PATH=${PATH}:`go env GOPATH`/bin