← Back to Pull requests

feat(packaging): build the installer offline with distro Rust toolchains #186

Closed
unknown closed this pull request without merging on Oct 04, 2026 01:09 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 23:05 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/packslip/trails/63
<!-- entire-trail-link-end -->

Packslip can be built as a complete installer using a distribution's Rust toolchain, so it can bootstrap upstream package managers without requiring another language package manager to install Packslip. Add offline Debian/PPA and RPM/COPR source recipes, minimal installer packages, and publishing workflows for the jdxcode accounts.

Lower the declared minimum Rust version to 1.93 and require all-feature, library-only, and installer tests plus Clippy on five native platforms. Require offline Debian and RPM build/test/install checks on Linux x64 and ARM64. Vendored build inputs retain each separate crate's checksums and license files; the build does not run rustup or fetch dependencies.

Validated the full installer build, tests, package contents, and installation on native Ubuntu ARM64 without networking; an earlier recipe snapshot also passed on Fedora x64. Rust 1.93 full/minimal/installer tests and all-target Clippy pass on macOS ARM64. Debian source preparation now copies buildinfo and verifies all source upload files against .changes checksums; a missing-buildinfo probe is rejected before upload. Static and generated completion forms are validated against the existing spec, with five new conformance vectors. Unsigned Debian and RPM source preparation, shell lint, workflow security analysis, documentation examples/links, and browser preview pass. The native Windows CLI suite also passes. Both actions now run with macOS system Bash 3; the full Rust 1.93 suite passes with that shell. COPR authentication was verified with the pinned client, including its required rich dependency. Latest native CI checks provide the remaining platform evidence.

Builds on the merged installer and compatibility layers. The PPA and COPR project are created for x64/ARM64, the dedicated upload key is registered with Launchpad, and COPR credentials are configured and authenticated. The first stable publication remains pending a release containing the reviewed installer stack. These are interim upstream repositories, not admission to official distro archives. Signed APT/RPM hosting follows in the next layer.

AI-assisted — Tool: Codex; model: unavailable; version: unavailable.

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

Medium Risk

Adds release publishing workflows with GPG/COPR secrets and broad CI matrix changes; lowered MSRV and stricter completion validation may affect downstream builds and previously borderline manifests.

> Overview

Adds offline Debian and RPM packaging for the install-cli distribution build: vendored Cargo sources, packaging/debian and packaging/rpm recipes, helper scripts (package-source.sh, package-debian-source.sh, package-rpm-source.sh, check-distro-packages.sh), and CI jobs distro-source / distro-build that prepare source artifacts and build/install packages in Docker with no network on Ubuntu x64 and ARM64.

> Introduces distro-source.yml to package a published release tag, sign Debian uploads, and submit COPR builds (credentials gated by GitHub environments). msrv runs Clippy and tests on Rust 1.93 across five OS/arch runners; rust-version and contributor docs drop the repo MSRV from 1.95 to 1.93 (crates.io 1.4.0 still documented as 1.95).

> Hardens Actions: persist-credentials: false on checkouts, and action.yml / releases/action.yml drop Bash 4 features (mapfile, associative arrays) for macOS Bash 3 compatibility.

> Tightens completion resource validation in model.rs (mutually exclusive shell vs shells, exec completions must use shells + {shell}) with new conformance vectors; fixes a tar backslash archive test on Windows and a CLI test path assertion.

> New content/docs/distributions.md documents packaging and PPA/COPR setup.

> <sup>Reviewed by Cursor Bugbot for commit 302de65bfd1e9ed623099729a60bf53fea9e33e0. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Added support for building Debian and RPM packages, with workflows to prepare and publish source packages.
Package builds include the command-line tool, manual page, configuration files, and Bash, Zsh, and Fish completions.
Compatibility
Repository builds now support Rust 1.93 and newer. The current crates.io release still requires Rust 1.95 or newer.
Documentation
Added guidance for building distribution packages and configuring package publication.
Bug Fixes
* Improved validation of shell completion declarations in release statements.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 622 lines (+466 / -156) across 7 files Reviewer: jdx Review duration: 123m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 622 lines diff across 7 files
0.50
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.385
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #186"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 50.3% (MEDIUM) · Higher = larger blast radius
50.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 21.8% · Safe to merge
21.8%
Repository