Skip to content

GoReleaser - hooks feature #2692

@cafferata

Description

@cafferata

Hi @tlimoncelli, because I forgot to perform the go generate the last time c29a648, I looked further into the possibilities of guaranteeing the go generate from the before hooks through GoReleaser.

The before section allows for global hooks that will be executed before the release is started.

https://goreleaser.com/customization/hooks/?h=before

Example configuration based on DNSControl

before:
  hooks:
  - go vet ./...
  - go fmt ./...
  - go generate ./...
  - go mod tidy

What do you think? Should I prepare a pull request with this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions