From df2a1fb4d6fe5126810862e18e4782be37fd4acd Mon Sep 17 00:00:00 2001 From: arran4 <111667+arran4@users.noreply.github.com> Date: Wed, 5 Aug 2026 02:13:57 +0000 Subject: [PATCH] chore: update .goreleaser.yaml to conform to v2 spec Updates `.goreleaser.yaml` to fix CI/CD workflow failures due to the transition to GoReleaser v2. * Adds `version: 2` at the top of the file * Consolidates duplicate `archives` configuration using `format_overrides` for Windows zip archives * Updates deprecated `archives.format` to `formats` * Updates deprecated `snapshot.name_template` to `version_template` Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- .gitignore | 2 ++ .goreleaser.yaml | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index f02fdf4..856fe94 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ /dist /.directory matchstick + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a859bd4..5e687f8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,6 +1,8 @@ # Generated by github.com/arran4/go-subcommand/cmd/gosubc # .goreleaser.yml +version: 2 + before: hooks: - go mod tidy @@ -18,11 +20,12 @@ builds: - arm64 archives: - - format: tar.gz - files: - - LICENSE - - README.md - - format: zip + - formats: + - tar.gz + format_overrides: + - goos: windows + formats: + - zip files: - LICENSE - README.md @@ -44,7 +47,7 @@ checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc