Skip to content

Commit 3f706f6

Browse files
dylanratcliffeactions-user
authored andcommitted
Fixed deprecated settings (#2202)
Fixes the following deprecation warnings: ``` • DEPRECATED: archives.format should not be used anymore, check https://goreleaser.com/deprecations#archivesformat for more info • DEPRECATED: archives.format_overrides.format should not be used anymore, check https://goreleaser.com/deprecations#archivesformat_overridesformat for more info • DEPRECATED: nfpms.builds should not be used anymore, check https://goreleaser.com/deprecations#nfpmsbuilds for more info ``` 1. **Fixed `archives.format`**: Changed from `format: tar.gz` to `formats: [tar.gz]` (array format) 2. **Fixed `archives.format_overrides.format`**: Changed from `format: zip` to `formats: [zip]` (array format) 3. **Fixed `nfpms.builds`**: Changed from `builds: - overmind` to `ids: - overmind` to match the nomenclature used elsewhere in GoReleaser All changes follow the official GoReleaser deprecation documentation: - `archives.format` and `archives.format_overrides.format` were deprecated since v2.6 in favor of `formats` (which accepts arrays) - `nfpms.builds` was deprecated since v2.8 in favor of `ids` to maintain consistency across the configuration These changes ensure the GoReleaser configuration is up-to-date and won't produce deprecation warnings anymore. GitOrigin-RevId: 7db7d30ec4522a1a48c152bd033ae8b98b7b2d72
1 parent a7633a7 commit 3f706f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ builds:
4141
# artifacts: all
4242

4343
archives:
44-
- format: tar.gz
44+
- formats: [tar.gz]
4545
# this name template makes the OS and Arch compatible with the results of uname.
4646
name_template: >-
4747
{{ .Binary }}_
@@ -55,7 +55,7 @@ archives:
5555
# use zip for windows archives
5656
format_overrides:
5757
- goos: windows
58-
format: zip
58+
formats: [zip]
5959
files:
6060
- LICENSE
6161
- README.md
@@ -67,7 +67,7 @@ nfpms:
6767

6868
# Build IDs for the builds you want to create NFPM packages for.
6969
# Defaults empty, which means no filtering.
70-
builds:
70+
ids:
7171
- overmind
7272
vendor: Overmind
7373
homepage: https://overmind.tech/

0 commit comments

Comments
 (0)