Repository navigation
Description
Ask
"I use goreleaser and it takes care of creating things for me"
Sibling repo scttfrdmn/lith does deb + rpm + checksums + SBOMs + a multi-arch image + keyless cosign from one ~110-line .goreleaser.yaml. objectfs hand-rolls the same surface across release.yml + nfpm.yaml in ~700 lines. Worth doing — but not in one PR yet, for reasons that were measured, not argued: goreleaser 2.18.1 installed, a candidate config written, goreleaser check and goreleaser release --snapshot actually run.
What already works (proven, so a future PR need not re-derive it)
The naming half — which is the part everyone assumes is the blocker — is fully expressible:
- All 5 archive names reproduce exactly via
name_template, including the platform matrix in full. - The inner binary name
objectfs-linux-armv7reproduces exactly.scripts/install.shhard-requires it. - Per-asset
.sha256siblings are available viachecksum.split: true. .deb/.rpmnames reproduce exactly on a real tag via{{ .ConventionalFileName }}plusrelease: "1".
Blockers, in the order they matter
- rpm signing regresses.
goreleaser checkfails withfield key_id not found in type config.NFPMRPMSignature, and the schema confirms that struct acceptskey_fileonly. nfpm's rpm signing needs the 16-hex-digitkey_id. This is a correctness capability, so per the project thesis it must fail closed rather than quietly degrade — and "the rpm is no longer signed" is exactly the silent degradation the rule exists to prevent. - Split
.sha256files contain a bare hash with no filename, so thesha256sum -c <asset>.sha256instruction the release notes publish today stops working. Fixable by post-processing, but it is a change to a published verification instruction and must be deliberate. files: []did not take effect in the snapshot run — LICENSE, README and CHANGELOG leaked into the archives. Cosmetic, but it means archive contents are not yet under control.- Extra packages appear. goreleaser emitted
_armhf.deband.armv7hl.rpmin addition, giving 3 debs + 3 rpms where the release publishes 2 + 2.internal/config/release_packages_test.goasserts[ "$rpms" -eq 2 ], so the test and the reality would have to move together. - Two sources of truth for packaging.
nfpm.yamlis driven bymake package-linux, which runs on every PR via ci.yml'spackagingandrepo-installjobs, and is also consumed by the dormant apt/yum machinery that is explicitly being held as-is. A goreleaser config that duplicates it is the precise failureCHANGELOG.md:5624records: two previous goreleaser configs were deleted for exactly this, and the stated condition for returning is "one file, wired to a workflow". - It cannot be verified without cutting a real release. Snapshot mode does not exercise the tag-dependent naming or the upload.
What a viable PR looks like
Land it as a replacement, not an addition: make package-linux and the packaging/repo-install jobs invoke goreleaser, nfpm.yaml is deleted in the same commit, release_packages_test.go moves with the package count, and the rpm-signing question has an answer (either goreleaser gains key_id, or an explicit post-goreleaser rpmsign step, or a recorded decision that the embedded rpm signature is dropped in favour of repository-metadata signing only). Anything less leaves two definitions of the packages, which is how the last two attempts ended.
Note that keyless cosign — the other half of the original ask — has already landed standalone in #501 and does not depend on this.
Activity
feat(release): build and package with goreleaser (#502) (#521)
release: cut 0.15.0, and correct four references to a release that ne…