mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 00:22:08 -06:00
1.3 KiB
1.3 KiB
Contributing Guide
You can contribute to vet and help make it better. Apart from bug fixes,
features, we particularly value contributions in the form of:
- Documentation improvements
- Bug reports
- Using
vetin your projects and providing feedback
How to contribute
- Fork the repository
- Add your changes
- Submit a pull request
How to report a bug
Create a new issue and add the label "bug".
How to suggest a new feature
Create a new issue and add the label "enhancement".
Development workflow
When contributing changes to repository, follow these steps:
- Ensure tests are passing
- Ensure you write test cases for new code
Signed-off-byline is required in commit message (use-sflag while committing)
Developer Setup
Requirements
- Go 1.24.3+
Install Dependencies
- Install ASDF
- Install the development tools
asdf plugin add golang
asdf plugin add gitleaks
asdf install
- Install
lefthook
go install github.com/evilmartians/lefthook@latest
- Install git hooks
$(go env GOPATH)/bin/lefthook install
Build
Install build tools
make dev-setup
Generate code from API specs and build vet
make
Quick build without regenerating code from API specs
make quick-vet
Run Tests
make test