Skip to content

fix(packaging): restore path dependencies with registry patches - #1026

Closed
martin-kolinek wants to merge 1 commit into
mainfrom
u/makolnek/path-based-publishing-design
Closed

martin-kolinek wants to merge 1 commit into
mainfrom
u/makolnek/path-based-publishing-design

Conversation

@martin-kolinek

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 23a330f885596c40adaa93fa3b8f9d10135d532e

Dimension Assessment Rationale
Change confidence 9/10 ↑ All 94 workspace packages package successfully with the final lockfile.
↑ Archive inspection confirms no patches or dependency paths and only the intended ohno/plurality versions.
↑ Workspace Clippy, formatting, README generation, spelling, and manifest ordering pass.
↓ Full runtime tests and actual publication were not run.
Diagnosis confidence 9.5/10 ↑ Restoring the ohno path alone reproduces the performables resolver conflict.
↑ Patching only ohno exposes the independent plurality conflict in arty.
↑ Adding the plurality patch resolves both failures.
Evidence fit 9/10 ↑ The performables failure matches the conflict documented in abandoned #1019.
↑ The arty reproduction proves the additional package requires the same workaround.
↓ The original publishing pipeline was not rerun.

🤖 This is the path-based publishing design. It restores local development against ohno rather than keeping workspace consumers on its published version.

Changes

Restore ohno = { path = "crates/ohno", ..., version = "0.5.5" }.
Adopt the root crates.io patch approach from abandoned #1019 and extend it to plurality.
Refresh only their lockfile selections and document the publishing constraints.
Package versions and publishing scripts remain unchanged.

Which packages need patches?

ohno and plurality need root patches in the current graph.

cpulist 1.1.11, through many_cpus, stays locked to registry ohno 0.5.4.
The prepared metabench 0.3.1 requires ohno ^0.5.5.
Restoring only the local path reproduces the resolver failure while packaging the ten-package performables dependency set.

With ohno patched, packaging the 29-package arty dependency set reaches a second resolver failure.
events_once 0.5.42 stays locked to registry plurality 0.2.4, but arty 0.7.0 requires plurality ^0.2.5.
The plurality patch resolves this failure.

The resolved metadata audit covers all 94 workspace packages, including all features and target-specific dependency declarations.
It finds no other independent registry dependency on a workspace package.
The ohno patch also removes its old registry macro family through local path dependencies.
Separate patches for ohno_macros and ohno_macros_impl are unnecessary.

Evidence

cargo package --workspace --offline --locked --no-verify --allow-dirty succeeds for all 94 workspace packages.
Inspection of every archive confirms that normalized manifests contain no root patches or dependency paths.
Every included ohno selection is 0.5.5, and every included plurality selection is 0.2.5.
Dependencies use registry sources rather than local paths.
The root lockfile contains no registry duplicate of a workspace package.

just anvil-clippy, just anvil-fmt --fix, just anvil-readme --fix, just anvil-spellcheck, and just anvil-cargo-sort pass.

Packaging used --no-verify, so it did not compile the extracted archives.
Clippy compiled local workspace targets with all features.
The full test tier and actual publication were not run.

Tradeoff

Local consumers now build against prepared workspace sources, including unreleased changes.
The patches do not ship to consumers.
The release set must include the required prepared dependencies, and their version requirements must remain compatible.

Restore the workspace ohno path and patch compatible registry consumers of ohno and plurality to their local sources. Remove stale registry copies so Cargo can package the prepared release versions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the workspace dependency and packaging changes.

No open issues 🎉

What changed in this PR

This PR restores local workspace use of ohno and adds registry patches to address dependency conflicts during packaging. Package versions and publishing scripts remain unchanged.

Changes:

  • Restore the ohno path dependency and patch compatible registry dependencies on ohno and plurality to workspace sources.
  • Refresh the lockfile to remove older registry copies and the old ohno macro dependencies.
  • Document packaging constraints and checks for generated package lockfiles.
File Description
docs/​packaging-guidelines.md Explains the dependency conflicts, patch behavior, and release requirements.
Cargo.toml Restores local ohno use and adds root patches for ohno and plurality.
Cargo.lock Unifies affected dependencies on workspace versions and removes older registry entries.

Review effort: Balanced

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.

3 participants