Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.34 KB

CONTRIBUTING.md

File metadata and controls

58 lines (39 loc) · 2.34 KB

Contributing

rakkess uses GitHub to manage reviews of pull requests.

  • If you have a trivial fix or improvement, go ahead and create a pull request.

  • Code must be properly formatted using go fmt

  • If you plan to do something more involved, first raise an issue to discuss your idea. This will avoid unnecessary work.

  • Relevant coding style guidelines are the Go Code Review Comments and the Formatting and style section of Peter Bourgon's Go: Best Practices for Production Environments.

Building & Testing

  • Build via make dev to create the binary file ./rakkess.
  • Run unit tests with: make test
  • Run coverage with: make coverage

Pull Request Checklist

  • Use the latest stable Go release

  • Branch from master and, if needed, rebase to the current master branch before submitting your pull request. If it doesn't merge cleanly with master you will be asked to rebase your changes.

  • Commits should be small units of work with one topic. Each commit should be correct independently.

  • Add tests relevant to the fixed bug or new feature.

  • Add a DCO / Signed-off-by line in any commit message (git commit --signoff).

Setup of your local environment

  • go env shows helpful info about the current env setup for go.
  • Check here for more info on setting $GOPATH and $GOROOT env vars.

Quick Start:

  1. mkdir -p $HOME/go/src
  2. export GOPATH=$HOME/go
  3. go get -u github.com/corneliusweig/rakkess
  4. Set $GOROOT depending on your OS and Go installation method:
    • MacOS, Go installed via brew: export GOROOT=/usr/local/opt/go/libexec/
  5. Now you should be able to build:
    • cd $GOPATH/src/github.com/corneliusweig/rakkess/
    • make dev

Releases

This is a checklist for new releases:

  1. Create release notes in doc/releases by running hack/release_notes.sh.
  2. Update usage instructions, if applicable.
  3. Create a new tag via hack/make_tag.sh.
  4. Push the tag to GitHub git push origin v1.3.1.
  5. Check that PR is auto-created in krew-index.
  6. When the release is created, update its summary with the release notes.