Skip to content

Commit 132f2ed

Browse files
fix(release): goreleaser v2 expects 'checksum' (singular) for sign artifacts (#19)
The first v0.2.0 tag failed with: invalid list of artifacts to sign: checksums GoReleaser v2's schema enum is 'checksum' — the plural form was a v1 holdover that v2 explicitly rejects. Same Sigstore cosign keyless flow, just the YAML key fixed. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6b73802 commit 132f2ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.goreleaser.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ checksum:
101101
signs:
102102
- id: cosign-checksums
103103
cmd: cosign
104-
artifacts: checksums
104+
# GoReleaser v2 uses the singular `checksum` (the schema's enum), not
105+
# `checksums`. The earlier v1 docs floated both — the v2 release
106+
# rejected the plural form with `invalid list of artifacts to sign`.
107+
artifacts: checksum
105108
signature: "${artifact}.sig"
106109
certificate: "${artifact}.pem"
107110
args:

0 commit comments

Comments
 (0)