Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.37 KB

CONTRIBUTING.md

File metadata and controls

82 lines (51 loc) · 2.37 KB

Development

Build

make fast-build builds a binary for your current machine used for testing/experimentation make ci runs all linters and tests make build runs a full release build (does not release)

example .env file

VERSION=unknown
BREV_API_URL=http://localhost:8080
# BREV_API_URL=<your backend>

adding new commands

https://github.com/spf13/cobra/blob/master/user_guide.md

pkg/cmd/logout/logout.go is a minimal command to go off of for adding new commands.

commands for the cli should follow <VERB> <NOUN> pattern.

Don't forget to add a debug command to .vscode/launch.json

Terminal

  • make - execute the build pipeline.
  • make help - print help for the Make targets.

Visual Studio Code

F1Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B) to execute the build pipeline.

Release

make a patch release

make version-bump-patch

make a minor release

make version-bump-minor

make a major release

make version-bump-major

when releasing make sure to

  1. run full-smoke-test before cutting release to run through some common commands and make sure that they work

  2. release new version of workspace-images

  3. update brev's homebrew tap

Maintainance

Remember to update Go version in .github/workflows, Makefile and devcontainer.json.

Notable files: