Repository navigation
ci(release): fix GoReleaser v2 compatibility - #106
Merged
Merged
Conversation
- Use the supported clean flag for tag releases - Update the configuration schema and deprecated fields
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
The tag release fails with
unknown flag: --rm-diston GoReleaser 2.19.0. Userelease --clean, matching the other plugin repositories, and declare configuration version 2 with the currentarchives.formatsandsnapshot.version_templatekeys. Build targets and artifact naming remain unchanged.Failure: https://github.com/appleboy/drone-lambda/actions/runs/41284263063
Scope and classification
Leaf change: limited to this repository's release configuration. Goal: restore compatibility with GoReleaser v2. No application code changes. Related GitHub/Jira issues: none supplied.
Verification
Check out
fix/goreleaser-v2-releaseand run from the repository root. Prerequisites: Go 1.26.10, GoReleaser 2.19.0 on PATH, actionlint, xz, and fetched Git tags. Use a disposable checkout because the snapshot command runsgo mod tidyand cleansdist/.actionlint .github/workflows/goreleaser.ymlgoreleaser checkgoreleaser release --snapshot --clean --skip=publish --parallelism=4git diff --checkRegression evidence: before the change, the CI release rejected
--rm-dist; localgoreleaser checkalso rejected deprecated configuration properties. Both checks now succeed. The snapshot run retained existing duplicate-artifact warnings from binary archive naming, but exited successfully. Actual tag publication was Not run; it requires a release tag and GitHub credentials and remains a release-time check. GitHub PR checks will run after opening.Cleanup: remove the generated
dist/directory in the disposable checkout. No release was published during validation.AI authorship
.github/workflows/goreleaser.yml,.goreleaser.yaml.Evidence
Screenshots: N/A — CI configuration only. Performance: N/A — no performance claim.
Security, risk and rollback
No secrets are included; no permissions or external interfaces changed. Risk is limited to release configuration compatibility; publishing itself has not been exercised. Revert this commit to roll back (which restores the original failure).
Reviewer guide
One reviewer recommended for this Leaf change. Review the CLI flag and schema updates, then run the snapshot commands above. Verify real publishing during the next authorized tag release.