Code of Conduct
Please refer to the Kinvolk Code of Conduct .
Setup developer environment
git clone [email protected]:kinvolk/lokomotive.git cd lokomotive
Build the code
To use the assets from disk instead of the ones embedded in the binary,
LOKOCTL_USE_FS_ASSETS environment variable.
Empty value means that lokoctl will search for assets in
directory where the binary is.
Non empty value should point to the
assets directory should contain subdirectories like
LOKOCTL_USE_FS_ASSETS='' ./lokoctl help LOKOCTL_USE_FS_ASSETS='./assets' ./lokoctl help
Build with docker
Alternatively, you can use a Docker environment to build the binary.
When changing code under
assets/ you need to regenerate assets before
Commit and submit a PR.
For the general guidelines on making PRs/commits easier to review, please check out Kinvolk’s contribution guidelines on git .
In order to update dependencies managed with Go modules, run
which will ensure that all steps needed for an update are taken (tidy and vendoring).
Testing and linting requirements
- Minimum Go version 1.14
- golangci-lint installed locally