Repository navigation
Conversation
Apply allowUnusedPatches from dotted command-line overrides and the PNPM_CONFIG_ALLOW_UNUSED_PATCHES environment variable before dispatching commands. Add parser, environment, and legacy deploy regression coverage. Fixes #14450.
PR Summary by QodoHonor unused-patch CLI and environment overrides
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change makes ChangesAllow unused patches overrides
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR enables the existing unused-patch behavior through two supported Rust CLI configuration paths and adds regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. Assessment against linked issues
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "fix(cli): validate unused-patch override..." | Re-trigger Greptile |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Register allow-unused-patches as a boolean setting so invalid values remain in argv for clap to reject. Cover bare, negated, numeric, dotted, and invalid spellings.
Micro-Benchmark ResultsLinux |
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Addressed the invalid-boolean finding in commit The changeset finding does not apply to this PR. This is a Rust-only change, and the repository instructions explicitly require the Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit dcd998a |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14459 +/- ##
==========================================
- Coverage 88.85% 88.85% -0.01%
==========================================
Files 703 703
Lines 125944 125950 +6
==========================================
+ Hits 111912 111916 +4
- Misses 14032 14034 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
allowUnusedPatchesin the Rust pnpm CLI when it is supplied through--config.allow-unused-patchesor the pnpm-specificPNPM_CONFIG_ALLOW_UNUSED_PATCHES/pnpm_config_allow_unused_patchesenvironment variable.
configuration paths with unit and
deploy --legacyregression tests.override path. General
npm_config_*settings remain intentionally unsupportedby the Rust CLI; the issue's v11 no-setting case also succeeds, so it does not
establish that namespace as the cause of the version difference.
Fixes #14450.
Squash Commit Body
Checklist
already linked to it solves it.
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
pnpm deployso it honors theallow-unused-patchessetting provided through CLI configuration or thePNPM_CONFIG_ALLOW_UNUSED_PATCHESenvironment variable.true,false,1,0, and the--no-allow-unused-patchesflag.Tests