-
Notifications
You must be signed in to change notification settings - Fork 81
Fix goreleaser: Upgrade to v2 format and command line flag migration #444
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
Conversation
> --skip > > since 2023-09-14 (v1.21), removed 2024-05-26 (v2.0) > > The following goreleaser release flags were deprecated: > > --skip-announce > --skip-before > --skip-docker > --skip-ko > --skip-publish > --skip-sbom > --skip-sign > --skip-validate See https://goreleaser.com/deprecations/#-skip This also fixes a problem with the version of the `.goreleaser.yml` which now has to be `version: 2`. In order for the github workflow to not error with this message: ```console $ goreleaser check • by using this software you agree with its EULA, available at https://goreleaser.com/eula • running goreleaser v2.7.0 • 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 • .goreleaser.yml error=configuration is valid, but uses deprecated properties ⨯ command failed error=1 out of 1 configuration file(s) have https://black.readthedocs.io/en/stable/integrations/source_version_control.html ``` We have to provide this [`--soft`](https://goreleaser.com/cmd/goreleaser_check/?h=check#see-also) flag to the `check` command: ```console $ goreleaser check --soft • by using this software you agree with its EULA, available at https://goreleaser.com/eula • running goreleaser v2.7.0 • 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 • .goreleaser.yml error=configuration is valid, but uses deprecated properties • 1 configuration file(s) validated • thanks for using GoReleaser Pro! ```
This fixes these issues: ``` • 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 ```
Sorry about the long delay. |
@ejoffe no worries and thank YOU for accepting PRs. I'm super happy to see that the repository/project isn't abandoned. The last commit to |
Meh, I didn't notice it, to used to spr commit stacks. We'll live with the ugly commits. |
Released in v0.15.0 |
Fix #427
See https://goreleaser.com/deprecations/#-skip
This also fixes a problem with the version of the
.goreleaser.yml
which now has to be
version: 2
.In order for the github workflow to not error with this message:
I had to update the
.gorelease.yml
according to theDEPRECATED
links in the output above.