Skip to content

chore: migrate .goreleaser-plugin.yaml to goreleaser v2 archives schema#176

Merged
scotwells merged 1 commit into
feat/datumctl-compute-pluginfrom
chore/goreleaser-plugin-archives-schema
Jul 10, 2026
Merged

chore: migrate .goreleaser-plugin.yaml to goreleaser v2 archives schema#176
scotwells merged 1 commit into
feat/datumctl-compute-pluginfrom
chore/goreleaser-plugin-archives-schema

Conversation

@scotwells

@scotwells scotwells commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Why

Keeps datumctl-compute CLI plugin releases reliable. Every plugin release currently emits three goreleaser deprecation warnings, and a future goreleaser major that drops the old keys would break the release pipeline outright — blocking users from receiving CLI plugin updates. Migrating now removes that time bomb with zero change to the published artifacts.

Note

This PR targets feat/datumctl-compute-plugin rather than main because .goreleaser-plugin.yaml (and the plugin source it builds, cmd/datumctl-compute) only exist on that branch, which is where plugin releases are cut from.

What changed

Migrated .goreleaser-plugin.yaml to the current goreleaser v2 archives schema per https://goreleaser.com/deprecations:

Deprecated key Replacement
archives.builds archives.ids
archives.format archives.formats (list)
archives.format_overrides.format archives.format_overrides.formats (list)

No other deprecated keys are present in the file (confirmed via goreleaser check and a clean release run).

Verification

Ran goreleaser release --snapshot --clean --skip=publish --config .goreleaser-plugin.yaml (goreleaser 2.16.0) before and after the change, re-verified after rebasing onto the latest base branch.

Before: three deprecation warnings:

• DEPRECATED: archives.format should not be used anymore
• DEPRECATED: archives.format_overrides.format should not be used anymore
• DEPRECATED: archives.builds should not be used anymore

After: zero deprecation warnings, goreleaser check passes, and the snapshot produces the same six platform archives with byte-identical names:

datumctl-compute_Darwin_arm64.tar.gz
datumctl-compute_Darwin_x86_64.tar.gz
datumctl-compute_Linux_arm64.tar.gz
datumctl-compute_Linux_x86_64.tar.gz
datumctl-compute_Windows_arm64.zip
datumctl-compute_Windows_x86_64.zip

golangci-lint run (v2.12.2, the CI-pinned version) reports 0 issues on the rebased head. An earlier revision of this PR carried lint fixes for the branch; those landed on the base branch independently (cb02956), so this PR is now the goreleaser migration only.

Fixes #124

🤖 Generated with Claude Code

Replace the deprecated archives keys (archives.builds, archives.format,
archives.format_overrides.format) with their current equivalents
(archives.ids, archives.formats, archives.format_overrides.formats) so
plugin releases stop emitting deprecation warnings and keep working when
a future goreleaser major removes the old keys.

Verified with goreleaser 2.16.0: snapshot release produces the same six
platform archives with identical names and zero deprecation warnings.

Fixes #124

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@scotwells scotwells force-pushed the chore/goreleaser-plugin-archives-schema branch from f7ab306 to 9aeb59e Compare July 10, 2026 14:55
@scotwells scotwells marked this pull request as ready for review July 10, 2026 14:57
@scotwells scotwells merged commit 5a4997e into feat/datumctl-compute-plugin Jul 10, 2026
8 checks passed
@scotwells scotwells deleted the chore/goreleaser-plugin-archives-schema branch July 10, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant