GoReleaser version 2 has been released, which removes previously deprecated configuration file options, removes previously deprecated CLI flags, and requires a new version: 2 setting in the GoReleaser configuration file. While providers using these workflows maintain their own GoReleaser configuration files, the workflows do determine whether GoReleaser v1 or v2 will be used by default and switching that default from v1 to v2 would likely introduce breaking changes for consumers. Inevitably, this change will need to occur to stay up to date with GoReleaser security and features.
Proposal
Update the workflows to use the latest trusted goreleaser-action (v6)
Ensure CLI flag usage in the workflows are compliant with GoReleaser v2 (e.g. --clean instead of --rm-dist)
Release a new major version of ghaction-terraform-provider-release (v5.0.0)
I didn't see any deprecated CLI flags in the community/hashicorp workflows, so theoretically this will just be merging the action version update and cutting a release.
Description
GoReleaser version 2 has been released, which removes previously deprecated configuration file options, removes previously deprecated CLI flags, and requires a new
version: 2
setting in the GoReleaser configuration file. While providers using these workflows maintain their own GoReleaser configuration files, the workflows do determine whether GoReleaser v1 or v2 will be used by default and switching that default from v1 to v2 would likely introduce breaking changes for consumers. Inevitably, this change will need to occur to stay up to date with GoReleaser security and features.Proposal
--clean
instead of--rm-dist
)Additional References