1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-29 01:44:39 +02:00
goreleaser/CONTRIBUTING.md
2017-08-18 19:46:40 -03:00

60 lines
1.1 KiB
Markdown

# Contributing
By participating to this project, you agree to abide our [code of
conduct](/CODE_OF_CONDUCT.md).
## Setup your machine
`goreleaser` is written in [Go](https://golang.org/).
Prerequisites are:
* Build:
* `make`
* [Go 1.8+](http://golang.org/doc/install)
* [fpm](https://fpm.readthedocs.io/en/latest/installing.html)
* rpm / rpmbuild
* [snapcraft](http://snapcraft.io/)
Clone `goreleaser` from source into `$GOPATH`:
```sh
$ mkdir -p $GOPATH/src/github.com/github.com/goreleaser
$ cd $_
$ git clone git@github.com:goreleaser/goreleaser.git
$ cd goreleaser
```
Install the build and lint dependencies:
```console
$ make setup
```
A good way of making sure everything is all right is running the test suite:
```console
$ make test
```
## Test your change
You can create a branch for your changes and try to build from the source as you go:
```console
$ make build
```
When you are satisfied with the changes, we suggest you run:
```console
$ make ci
```
Which runs all the linters and tests.
## Submit a pull request
Push your branch to your `goreleaser` fork and open a pull request against the
master branch.