Repository navigation
fix(packaging): restore path dependencies with registry patches - #1026
Closed
martin-kolinek wants to merge 1 commit into
Closed
martin-kolinek wants to merge 1 commit into
martin-kolinek wants to merge 1 commit into
Conversation
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>
Contributor
There was a problem hiding this comment.
🟢 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
ohnopath dependency and patch compatible registry dependencies onohnoandpluralityto workspace sources. - Refresh the lockfile to remove older registry copies and the old
ohnomacro 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
Sander Saares (sandersaares)
approved these changes
Nov 27, 2026
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
23a330f885596c40adaa93fa3b8f9d10135d532e↑ 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.
↑ Patching only ohno exposes the independent plurality conflict in arty.
↑ Adding the plurality patch resolves both failures.
↑ 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
ohnorather 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?
ohnoandpluralityneed root patches in the current graph.cpulist 1.1.11, throughmany_cpus, stays locked to registryohno 0.5.4.The prepared
metabench 0.3.1requiresohno ^0.5.5.Restoring only the local path reproduces the resolver failure while packaging the ten-package
performablesdependency set.With
ohnopatched, packaging the 29-packageartydependency set reaches a second resolver failure.events_once 0.5.42stays locked to registryplurality 0.2.4, butarty 0.7.0requiresplurality ^0.2.5.The
pluralitypatch 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
ohnopatch also removes its old registry macro family through local path dependencies.Separate patches for
ohno_macrosandohno_macros_implare unnecessary.Evidence
cargo package --workspace --offline --locked --no-verify --allow-dirtysucceeds for all 94 workspace packages.Inspection of every archive confirms that normalized manifests contain no root patches or dependency paths.
Every included
ohnoselection is0.5.5, and every includedpluralityselection is0.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, andjust anvil-cargo-sortpass.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.