1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/pkg
Carlos Alexandro Becker 30630bfc7f
feat: add builds.no_main_check and builds.command (#3064)
* feat: add builds.no_main_check and builds.command

Added two more options to the builds section:
- command: allow to override the command being run. E.g. instead of
  `go build`, one could run `go test -c` by setting gobinary, command
  and flags, respectively.
- no_main_check: by default, goreleaser will fail if there's no main
  function. This option allows to disable that check.

This PR effectively make GoReleaser able to release Go test binaries
instead of just "regular" binaries.

closes #3037

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* test: fix broken tests

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-25 22:07:02 -03:00
..
archive feat: faster archiving with pgzip (#2941) 2022-02-27 13:16:08 -03:00
build feat: support GOAMD64 (#3016) 2022-04-11 22:43:22 -03:00
config feat: add builds.no_main_check and builds.command (#3064) 2022-04-25 22:07:02 -03:00
context feat: more go 1.18 (#2984) 2022-03-16 23:28:13 -03:00
defaults feat: arch user repository integration (#2838) 2022-01-20 14:59:39 -03:00