Thank you for contributing to diego. Here are some guidelines to help you get started.
- Fork the project.
- Download your fork to your PC (
git clone https://github.com/your_username/diego && cd diego) - Create your feature branch (
git checkout -b feat/new-feature) - Make changes and test (
make run) - Add them to staging (
git add .) - Commit your changes (
git commit -m 'feat(import): add support for new-feature') - Push to the branch (
git push origin feat/new-feature) - Create new pull request
Conventional Commits messages are welcome but not mandatory, since each pull request will be squashed during the merge process. They are used to automate Semantic Versioning for the releases.
Execute make run to test and check your changes. If you do not have golangci-lint installed on your system, comment out the golangci-lint run line in the Makefile.
diego follows the Port and Adapters Architecture (Hexagonal). Refer to commit 3eb8bf8 for an overview of the files that need to be changed to implement support for a new service/file.
make dev/start/stop/clean/serestore:: see ttybitnik/mkdevmake lint:: lint the source codemake test:: lint and test the source codemake build:: lint, test, and build the binarymake run:: lint, test, build, and run the binarymake deploy:: lint, test, build, and deploy the application locallymake debug:: build the binary for debuggingmake disclean:: remove artifactsmake update:: update module dependencies and callmake runmake golden:: generate/update golden files using current test results
To automate the process of updating the docs/help and docs/man files, set the DIEGO_GENDOCS environment variable to 1 before building and running the application.
The recommended approach is to temporarily set the variable by using the following command whenever necessary:
DIEGO_GENDOCS=1 make run