Skip to content

fix(deb): use more precise method to extract version from Cargo.toml#89

Open
imlk0 wants to merge 4 commits intomasterfrom
fix/debian-version-extraction
Open

fix(deb): use more precise method to extract version from Cargo.toml#89
imlk0 wants to merge 4 commits intomasterfrom
fix/debian-version-extraction

Conversation

@imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Feb 6, 2026

Summary\nThis PR fixes the version extraction in debian/rules to more precisely target the [workspace.package] section in Cargo.toml.\n\n## Problem\nThe previous implementation using grep/sed could potentially match version strings from dependencies rather than the workspace package version.\n\n## Solution\nReplace grep/sed with awk to specifically target the [workspace.package] section for version extraction, ensuring we get the correct version for Debian package building.

imlk0 added 4 commits February 6, 2026 12:34
Remove manual debian/changelog file and implement automatic generation from Cargo.toml

Fixes: #76
Replace grep/sed with awk to specifically target [workspace.package] section for version extraction
Ensure changelog file exists for dpkg-buildpackage while auto-generating content from Cargo.toml version
- Remove manual changelog maintenance requirement
- Auto-extract version from Cargo.toml [workspace.package] section
- Generate changelog dynamically during build process
- Fallback to alternative extraction method if primary fails
- Fixes version mismatch issue between Cargo.toml and debian package
@imlk0 imlk0 force-pushed the fix/debian-version-extraction branch from 23e2eec to 2285829 Compare March 3, 2026 10:11
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.

1 participant