Skip to content

fix: allow path-only wildcard deps in cargo-deny bans - #1761

Merged
robcohen merged 1 commit into
mainfrom
fix/deny-allow-wildcard-path-devdeps
Jul 11, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/deny-allow-wildcard-path-devdeps

Conversation

@robcohen

Copy link
Copy Markdown
Member

Cargo Deny is red on main (and therefore on every open PR, e.g. #1760's run): #1758 made rustledger-wasm's sibling dev-deps path-only without a version so cargo strips them at publish and the crates.io publish order can never fail on them — but cargo-deny models a versionless path dep as a wildcard, tripping wildcards = "deny".

allow-wildcard-paths = true permits exactly this shape and nothing more: a path dep cannot bind to whatever version happens to resolve at publish time, which is what the wildcard ban exists to prevent. version = "*" registry specs remain denied.

Local cargo deny check: advisories ok, bans ok, licenses ok, sources ok.

🤖 Generated with Claude Code

#1758 made rustledger-wasm's sibling dev-deps path-only (no version)
so cargo strips them at publish and the crates.io publish order can
never fail on them. cargo-deny models a versionless path dep as a
wildcard, so 'wildcards = deny' now fails every PR (and main).
allow-wildcard-paths permits exactly this shape — path deps cannot
bind to a published version, which is what the wildcard ban guards
against.

Co-Authored-By: Claude Fable 5 <[email protected]>
@robcohen
robcohen requested a review from a team as a code owner July 11, 2026 13:54
Copilot AI review requested due to automatic review settings July 11, 2026 13:54

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.

Pull request overview

Updates the workspace cargo-deny configuration to keep the dependency bans policy strict while unblocking a known-safe Cargo pattern introduced in #1758 (path-only sibling dev-dependencies without a version).

Changes:

  • Allows versionless path dependencies to bypass the wildcards = "deny" rule in cargo-deny.
  • Adds inline rationale in deny.toml clarifying why this exception is safe and needed for publish behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen
robcohen enabled auto-merge (squash) July 11, 2026 13:57
@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 811
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@robcohen
robcohen merged commit ca7974c into main Jul 11, 2026
39 checks passed
@robcohen
robcohen deleted the fix/deny-allow-wildcard-path-devdeps branch July 11, 2026 14:05
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.

2 participants