Skip to content

fix(packaging): expand ${BINARY} in nfpm; bump to 0.1.0-rc.3 - #126

Merged
thedancingdeveloper merged 2 commits into
mainfrom
fix/nfpm-expand-binary
Oct 18, 2026
Merged

thedancingdeveloper merged 2 commits into
mainfrom
fix/nfpm-expand-binary

Conversation

@thedancingdeveloper

Copy link
Copy Markdown
Collaborator

The v0.1.0-rc.2 release build failed at nfpm package with glob failed: ${BINARY}: no matching files: nfpm only expands environment variables in a contents src when the entry sets expand: true. No GitHub release or download-host files were published for rc.2.

  • d731dc3: add expand: true to the binary entry in packaging/linux/nfpm.yaml. Reproduced and verified with the pinned nfpm v2.41.1: the deb and rpm both build, and the deb contains /usr/bin/rtbit plus the system and user units (version 0.1.0~rc.2).
  • 5263340: bump everything to 0.1.0-rc.3, the same files as chore(release): bump to 0.1.0-rc.2 #125, with a CHANGELOG entry for the fix. A pushed tag is never rewritten, so rc.2 stays as it is.

Also dry-ran the release steps that come after packaging and had never run, against fake artefacts: the staging install paths all exist, and render-aur.sh, render-homebrew.sh, render-flatpak.sh and render-winget.sh all render with versions and hashes filled in. The cosign verification and the upload steps can only run in CI.

Checks: scripts/check-repo-hygiene.sh, scripts/test-publish.sh, cargo check -p rtbit.

🤖 Generated with Claude Code

nfpm does not expand environment variables in contents src unless the
entry sets expand: true, so the v0.1.0-rc.2 release build failed with
'glob failed: ${BINARY}: no matching files'. Verified with nfpm v2.41.1:
deb and rpm now build with /usr/bin/rtbit and both systemd units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v0.1.0-rc.2 release build failed at nfpm packaging; rc.3 carries the
fix. Same set of files as the rc.2 bump, plus a CHANGELOG entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thedancingdeveloper
thedancingdeveloper merged commit 598052b into main Oct 18, 2026
11 checks passed
@thedancingdeveloper
thedancingdeveloper deleted the fix/nfpm-expand-binary branch October 18, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants