2016-11-08 22:00:49 +01:00
|
|
|
# Contributing to SOPS
|
|
|
|
|
|
2023-07-06 23:31:05 +02:00
|
|
|
The SOPS project welcomes contributions from everyone. Here are a few guidelines
|
|
|
|
|
and instructions if you are thinking of helping with the development of SOPS.
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-09-16 11:26:19 +02:00
|
|
|
## Getting started
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-07-06 23:31:05 +02:00
|
|
|
- Make sure you have Go 1.19 or greater installed. You can find information on
|
|
|
|
|
how to install Go [here](https://go.dev/doc/install)
|
|
|
|
|
- Clone the Git repository and switch into SOPS's directory.
|
|
|
|
|
- Run the tests with `make test`. They should all pass.
|
2023-09-16 22:38:30 +02:00
|
|
|
- If you modify documentation (RST or MD files), run `make checkdocs` to run
|
|
|
|
|
[rstcheck](https://pypi.org/project/rstcheck/) and
|
|
|
|
|
[markdownlint](https://github.com/markdownlint/markdownlint). These should also
|
|
|
|
|
pass. If you need help in fixing issues, create a pull request (see below) and
|
|
|
|
|
ask for help.
|
2023-07-06 23:31:05 +02:00
|
|
|
- Fork the project on GitHub.
|
|
|
|
|
- Add your fork to Git's remotes:
|
2023-09-16 11:26:19 +02:00
|
|
|
- If you use SSH authentication:
|
|
|
|
|
`git remote add <your username> git@github.com:<your username>/sops.git`.
|
|
|
|
|
- Otherwise: `git remote add <your username> https://github.com/<your username>/sops.git`.
|
2023-07-06 23:31:05 +02:00
|
|
|
- Make any changes you want to SOPS, commit them, and push them to your fork.
|
|
|
|
|
- **Create a pull request against `main`**, and a maintainer will come by and
|
|
|
|
|
review your code. They may ask for some changes, and hopefully your
|
|
|
|
|
contribution will be merged!
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-09-16 11:26:19 +02:00
|
|
|
## Guidelines
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-07-06 23:31:05 +02:00
|
|
|
- Unless it's particularly hard, changes that fix a bug should have a regression
|
|
|
|
|
test to make sure that the bug is not introduced again.
|
|
|
|
|
- New features and changes to existing features should be documented, and, if
|
|
|
|
|
possible, tested.
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-09-16 11:26:19 +02:00
|
|
|
## Communication
|
2016-11-08 22:00:49 +01:00
|
|
|
|
2023-07-06 23:31:05 +02:00
|
|
|
If you need any help contributing to SOPS, several maintainers are on the
|
|
|
|
|
[`#sops-dev` channel](https://cloud-native.slack.com/archives/C059800AJBT) on
|
|
|
|
|
the [CNCF Slack](https://slack.cncf.io).
|