2021-10-10 16:16:03 +02:00
|
|
|
# Contributing
|
2018-09-12 18:34:26 +02:00
|
|
|
|
2022-10-05 14:42:05 +02:00
|
|
|
By participating in this project, you agree to abide our
|
|
|
|
[code of conduct](https://github.com/goreleaser/.github/blob/main/CODE_OF_CONDUCT.md).
|
2018-09-12 18:34:26 +02:00
|
|
|
|
2022-10-05 14:42:05 +02:00
|
|
|
## Set up your machine
|
2021-10-10 16:16:03 +02:00
|
|
|
|
|
|
|
`goreleaser` is written in [Go](https://golang.org/).
|
|
|
|
|
|
|
|
Prerequisites:
|
|
|
|
|
|
|
|
- [Task](https://taskfile.dev/#/installation)
|
2023-02-05 18:39:39 +02:00
|
|
|
- [Go 1.20+](https://golang.org/doc/install)
|
2021-10-10 16:16:03 +02:00
|
|
|
|
|
|
|
Other things you might need to run the tests:
|
|
|
|
|
|
|
|
- [cosign](https://github.com/sigstore/cosign)
|
|
|
|
- [Docker](https://www.docker.com/)
|
|
|
|
- [GPG](https://gnupg.org)
|
|
|
|
- [Podman](https://podman.io/)
|
|
|
|
- [Snapcraft](https://snapcraft.io/)
|
2022-11-04 21:03:53 +02:00
|
|
|
- [Syft](https://github.com/anchore/syft)
|
2021-10-10 16:16:03 +02:00
|
|
|
|
|
|
|
Clone `goreleaser` anywhere:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
git clone git@github.com:goreleaser/goreleaser.git
|
|
|
|
```
|
|
|
|
|
|
|
|
`cd` into the directory and install the dependencies:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task setup
|
|
|
|
```
|
|
|
|
|
|
|
|
A good way of making sure everything is all right is running the test suite:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task test
|
|
|
|
```
|
|
|
|
|
|
|
|
## Test your change
|
|
|
|
|
|
|
|
You can create a branch for your changes and try to build from the source as you go:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task build
|
|
|
|
```
|
|
|
|
|
|
|
|
When you are satisfied with the changes, we suggest you run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task ci
|
|
|
|
```
|
|
|
|
|
2021-11-25 01:43:50 +02:00
|
|
|
Before you commit the changes, we also suggest you run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task fmt
|
|
|
|
```
|
|
|
|
|
2021-10-10 16:16:03 +02:00
|
|
|
## Create a commit
|
|
|
|
|
|
|
|
Commit messages should be well formatted, and to make that "standardized", we
|
|
|
|
are using Conventional Commits.
|
|
|
|
|
|
|
|
You can follow the documentation on
|
|
|
|
[their website](https://www.conventionalcommits.org).
|
|
|
|
|
|
|
|
## Submit a pull request
|
|
|
|
|
2021-11-12 22:23:32 +02:00
|
|
|
Push your branch to your `goreleaser` fork and open a pull request against the main branch.
|
2021-10-10 16:16:03 +02:00
|
|
|
|
|
|
|
## Financial contributions
|
|
|
|
|
2022-09-04 04:29:09 +02:00
|
|
|
You can contribute in our OpenCollective or to any of the contributors directly.
|
|
|
|
See [this page](https://goreleaser.com/sponsors) for more details.
|