Skip to content

chore: update .goreleaser.yml to v2 #3745

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tenthirtyam
Copy link
Contributor

@tenthirtyam tenthirtyam commented Mar 26, 2025

Description

Important

Holding this one in draft until after the next release.

  • Updates .goreleaser.yml to v2 configuration and addresses deprecations.
  • Adds vendor and license to nfpms configuration.

Before:

➜ goreleaser check .goreleaser.yml
  • only  version: 2  configuration files are supported, yours is  version: 0 , please update your configuration
  ⨯ command failed                                   error=only  version: 2  configuration files are supported, yours is  version: 0 , please update your configuration
➜ goreleaser check .goreleaser.yml
  • checking                                 path=.goreleaser.yml
  • DEPRECATED:  snapshot.name_template  should not be used anymore, check https://goreleaser.com/deprecations#snapshotname_template for more info
  • DEPRECATED:  archives.format_overrides.format  should not be used anymore, check https://goreleaser.com/deprecations#archivesformat_overridesformat for more info
  • DEPRECATED:  archives.builds  should not be used anymore, check https://goreleaser.com/deprecations#archivesbuilds for more info
  • DEPRECATED:  nfpms.builds  should not be used anymore, check https://goreleaser.com/deprecations#nfpmsbuilds for more info
  • .goreleaser.yml                                  error=configuration is valid, but uses deprecated properties
  ⨯ command failed                                   error=1 out of 1 configuration file(s) have issues

After:

govmomi on  chore/update-goreleaser-v2 via 🐹 v1.24.1 
➜ goreleaser check
  • checking                                 path=.goreleaser.yml
  • 1 configuration file(s) validated
  • thanks for using GoReleaser!

References

GoReleaser Deprecation Notices

Closes #3734

- Updates  `.goreleaser.yml` to v2 configuration and addresses deprecations.
- Adds `vendor` and `license` to `nfpms` configuration.

Signed-off-by: Ryan Johnson <[email protected]>
Copy link
Member

@dougm dougm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update GoRleaser configuration to v2
2 participants