chore(ci): migrate .goreleaser.yml to goreleaser v2 schema#427
Merged
Conversation
- Add `version: 2` top-level declaration (required by goreleaser v2) - Remove `archives.replacements` (removed in goreleaser v2.0) - Replace OS/Arch noop mappings; inline `amd64 -> x86_64` and `386 -> i386` via Go template in `name_template` to keep archive names compatible with v2.13.1 (api_gen_linux_x86_64.tar.gz etc.) - Migrate `format_overrides[].format` -> `formats: [zip]` (deprecated since goreleaser v2.6) Without these changes, goreleaser v2 fails fatally with: unknown field `replacements` Together with PR #426 (--rm-dist -> --clean), this completes the goreleaser v1 -> v2 migration so v2.14.1 (next tag) ships with binary assets again, like v2.13.1 did. 対象ファイル: - cmd/api_gen/.goreleaser.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion to #426. After fixing the `--rm-dist` flag in the workflow, the goreleaser v2 binary still rejects this repo's `.goreleaser.yml` because of two v2 deprecations:
This PR migrates `.goreleaser.yml` to the v2 schema while keeping archive names byte-identical to v2.13.1.
Changes
Why
Without this PR, the next tag push (v2.14.1) would fail in goreleaser v2 with `unknown field `replacements``, repeating the failure pattern seen on v2.14.0 (zero binary assets).
Verification
Follow-up
Once this merges, cut v2.14.1 to actually publish binaries.