2017-01-02 18:08:49 +01:00
|
|
|
# Contributing
|
|
|
|
|
2022-10-05 09:42:05 -03: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).
|
2017-01-02 18:08:49 +01:00
|
|
|
|
2022-10-05 09:42:05 -03:00
|
|
|
## Set up your machine
|
2017-01-02 18:08:49 +01:00
|
|
|
|
2017-01-17 10:47:34 -02:00
|
|
|
`goreleaser` is written in [Go](https://golang.org/).
|
2017-01-02 18:08:49 +01:00
|
|
|
|
2017-10-02 12:35:20 +02:00
|
|
|
Prerequisites:
|
|
|
|
|
2021-10-05 20:05:22 -03:00
|
|
|
- [Task](https://taskfile.dev/#/installation)
|
2022-08-06 18:44:23 -03:00
|
|
|
- [Go 1.19+](https://golang.org/doc/install)
|
2021-10-10 11:09:08 -03:00
|
|
|
|
|
|
|
Other things you might need to run the tests:
|
|
|
|
|
|
|
|
- [cosign](https://github.com/sigstore/cosign)
|
2018-05-28 10:49:38 -03:00
|
|
|
- [Docker](https://www.docker.com/)
|
2021-10-10 11:09:08 -03:00
|
|
|
- [GPG](https://gnupg.org)
|
|
|
|
- [Podman](https://podman.io/)
|
|
|
|
- [Snapcraft](https://snapcraft.io/)
|
2022-11-08 00:06:24 -03:00
|
|
|
- [Syft](https://github.com/anchore/syft)
|
2017-01-02 18:08:49 +01:00
|
|
|
|
2018-10-30 23:23:47 -03:00
|
|
|
Clone `goreleaser` anywhere:
|
2017-01-02 18:08:49 +01:00
|
|
|
|
|
|
|
```sh
|
2020-08-14 18:13:02 -03:00
|
|
|
git clone git@github.com:goreleaser/goreleaser.git
|
2017-01-02 18:08:49 +01:00
|
|
|
```
|
|
|
|
|
2021-03-01 14:45:06 -03:00
|
|
|
`cd` into the directory and install the dependencies:
|
2017-01-02 18:08:49 +01:00
|
|
|
|
2019-03-24 20:10:30 -03:00
|
|
|
```sh
|
2021-10-05 20:05:22 -03:00
|
|
|
task setup
|
2017-01-02 18:08:49 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
A good way of making sure everything is all right is running the test suite:
|
|
|
|
|
2019-03-24 20:10:30 -03:00
|
|
|
```sh
|
2021-10-05 20:05:22 -03:00
|
|
|
task test
|
2017-01-02 18:08:49 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Test your change
|
|
|
|
|
|
|
|
You can create a branch for your changes and try to build from the source as you go:
|
|
|
|
|
2019-03-24 20:10:30 -03:00
|
|
|
```sh
|
2021-10-05 20:05:22 -03:00
|
|
|
task build
|
2017-01-02 18:08:49 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
When you are satisfied with the changes, we suggest you run:
|
|
|
|
|
2019-03-24 20:10:30 -03:00
|
|
|
```sh
|
2021-10-05 20:05:22 -03:00
|
|
|
task ci
|
2017-01-02 18:08:49 +01:00
|
|
|
```
|
|
|
|
|
2021-11-24 20:42:18 -03:00
|
|
|
Before you commit the changes, we also suggest you run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
task fmt
|
|
|
|
```
|
|
|
|
|
2017-10-01 20:15:06 +02:00
|
|
|
## Create a commit
|
|
|
|
|
2019-06-06 00:35:50 -04:00
|
|
|
Commit messages should be well formatted, and to make that "standardized", we
|
|
|
|
are using Conventional Commits.
|
2017-10-01 20:15:06 +02:00
|
|
|
|
2019-01-01 13:19:57 -02:00
|
|
|
You can follow the documentation on
|
|
|
|
[their website](https://www.conventionalcommits.org).
|
2017-10-01 20:15:06 +02:00
|
|
|
|
2017-01-02 18:08:49 +01:00
|
|
|
## Submit a pull request
|
|
|
|
|
2021-11-12 17:23:32 -03:00
|
|
|
Push your branch to your `goreleaser` fork and open a pull request against the main branch.
|
2018-01-24 07:59:29 +09:00
|
|
|
|
|
|
|
## Financial contributions
|
|
|
|
|
2022-09-03 23:27:04 -03:00
|
|
|
You can contribute in our OpenCollective or to any of the contributors directly.
|
|
|
|
See [this page](https://goreleaser.com/sponsors) for more details.
|