Goreleaser 2 0

Apply GoReleaser 2.0 configuration, CLI, packaging, migration, and behaviour changes. Load for GoReleaser work targeting 2.0 or later when the model's knowledge may predate the 2024-06-05 release.

cedws 643784c 2 files · 1.5 KB Updated

File contents

GoReleaser 2.0

This overview applies to target GoReleaser versions of at least 2.0.

  • Version 2 removes options deprecated during the v1 series; migration starts with a clean goreleaser check on the latest v1, followed by another check using v2.
  • Version 2 configurations carry the top-level version: 2 schema header. This header selects the configuration schema, not the binary version.
  • The supported clean snapshot workflow is goreleaser release --snapshot --clean; legacy --rm-dist, individual --skip-*, and --debug usages need migration to their v2 replacements reported by the v1 deprecation warnings.
  • GitHub Actions workflows can select the v2 line with goreleaser/goreleaser-action@v6 and version: "~> v2".
  • Existing capabilities retained from late v1 include SBOM creation, keyless Cosign signing, AUR, Chocolatey, Ko, NUR, Winget, DMG and MSI packaging, and macOS signing and notarisation.
  • Pro-only capabilities include templated files, cross-SCM package publishing, changelog sub-grouping, and split-and-merge release workflows.

cedws/skills/tree/main/goreleaser/skills/goreleaser-2-0 commit 643784cd38

Frequently asked questions

npx skillmds@latest add cedws/goreleaser-2-0