fix(ci): pass correct Debian version to cargo-deb#85
Merged
Conversation
cargo-deb defaults to -1 as the Debian revision, but we need the calculated revision number (e.g., -3 for the third build). Changes: - generate-changelog.sh: Write Debian version to .debian-version file - build-deb action: Read .debian-version and pass --deb-version to cargo-deb - rename-packages.sh: Look for package with correct version (no more -1 hack) This ensures the package's internal metadata matches the filename and APT repository expectations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix cargo-deb to use the correct Debian version with the calculated revision number, not the default
-1.Problem
cargo-deb defaults to
-1as the Debian revision, producing packages likehalpi2-rust-daemon_5.0.0-1_arm64.deb. But the APT repository expects the calculated revision (e.g.,5.0.0-3), and the package's internal metadata must match.Solution
--upstreamand--revisionargs, write full Debian version to.debian-versionfile.debian-versionand pass--deb-versionflag to cargo-debFlow
Test plan
🤖 Generated with Claude Code