Skip to content

ci(release): fix GoReleaser v2 compatibility - #106

Merged
appleboy merged 1 commit into
masterfrom
fix/goreleaser-v2-release
Nov 8, 2026
Merged

appleboy merged 1 commit into
masterfrom
fix/goreleaser-v2-release

Conversation

@appleboy

@appleboy appleboy commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

The tag release fails with unknown flag: --rm-dist on GoReleaser 2.19.0. Use release --clean, matching the other plugin repositories, and declare configuration version 2 with the current archives.formats and snapshot.version_template keys. 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-release and 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 runs go mod tidy and cleans dist/.

Command Expected result Observed result
actionlint .github/workflows/goreleaser.yml Valid workflow Passed
goreleaser check Valid configuration, no deprecated properties Passed
goreleaser release --snapshot --clean --skip=publish --parallelism=4 Build and package all configured targets without publishing Passed: 9 platform binaries, xz artifacts and checksums generated
git diff --check No whitespace errors Passed

Regression evidence: before the change, the CI release rejected --rm-dist; local goreleaser check also 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

  • AI used: OpenAI Codex.
  • AI-authored files: .github/workflows/goreleaser.yml, .goreleaser.yaml.
  • Human line-by-line reviewed: None — not yet reviewed by a human.

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.

- Use the supported clean flag for tag releases
- Update the configuration schema and deprecated fields
@appleboy
appleboy merged commit 1bdd47a into master Nov 8, 2026
10 of 11 checks passed
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

⌂ 换网址