feat(npm): ensure npm is managed by corepack when node.corepack=true and node.npm_shim=false#10196
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds a NodePlugin helper to run Changesnpm Corepack Support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds support for using Corepack-managed npm when node.corepack=true and node.npm_shim=false, and extends e2e coverage for this configuration.
Changes:
- Add a
corepack enable npmstep during Node tool installation when Corepack is enabled and thenpmshim is disabled. - Add an e2e scenario asserting that
npmresolves to a Corepack-managed shim under that configuration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/plugins/core/node.rs | Runs corepack enable npm during install when Corepack is on and npm_shim is off. |
| e2e/core/test_node_npm_shim_slow | Adds an e2e test case validating the Corepack-managed npm behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Greptile SummaryThis PR ensures that when
Confidence Score: 5/5Safe to merge — the change is narrowly scoped to the corepack+npm_shim=false combination, and the new e2e test directly validates the expected symlink behavior. The new function is a straightforward wrapper around No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "feat(npm): ensure npm is managed by core..." | Re-trigger Greptile |
…and node.npm_shim=false
Ensures
npmis managed by corepack ifnode.corepack=trueandnode.npm_shim=falseas mentioned in #10194Summary by CodeRabbit
Tests
npm --versionstill runs.New Features