1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/pkg/config
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
..
testdata refactor: better code organization (#757) 2018-08-14 23:50:20 -03:00
config_archive_files_test.go feat(yaml): upgraded from yaml.v2 to yaml.v3 (#3004) 2022-03-29 14:00:53 -03:00
config_array_test.go feat(yaml): upgraded from yaml.v2 to yaml.v3 (#3004) 2022-03-29 14:00:53 -03:00
config_build_hook_test.go feat(yaml): upgraded from yaml.v2 to yaml.v3 (#3004) 2022-03-29 14:00:53 -03:00
config_homebrew_dependency_test.go chore: gofumpt & lint (#2190) 2021-04-25 14:20:49 -03:00
config_slack_test.go feat(announce): added Slack notification options (#2988) 2022-03-30 09:42:59 -03:00
config_test.go refactor: use os and io instead of ioutil (#2676) 2021-11-21 11:10:08 -03:00
config.go feat: add builds.no_main_check and builds.command (#3064) 2022-04-25 22:07:02 -03:00