Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add builds.no_main_check and builds.command #3064

Merged
merged 2 commits into from Apr 26, 2022
Merged

feat: add builds.no_main_check and builds.command #3064

merged 2 commits into from Apr 26, 2022

Commits on Apr 25, 2022

  1. 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>
    caarlos0 committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    c03efa7 View commit details
    Browse the repository at this point in the history
  2. test: fix broken tests

    Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
    caarlos0 committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    a351254 View commit details
    Browse the repository at this point in the history