Skip to content

feat(cli): warn on global operations under sudo, refuse them in v12 - #13495

Merged
zkochan merged 6 commits into
mainfrom
refuse-sudo-global
Aug 5, 2026
Merged

zkochan merged 6 commits into
mainfrom
refuse-sudo-global

Conversation

@zkochan

@zkochan zkochan commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Flags commands that write to home-directory locations when pnpm is executed through sudo. When the effective uid is 0 and SUDO_USER names a non-root user, pnpm setup, pnpm self-update, and global writes (add, remove, update, runtime, approve-builds, bare link, config set/config delete resolving to the global scope) are detected — with a hint explaining that pnpm's globals live in the invoking user's home directory and how to opt out for genuine root use (sudo env -u SUDO_USER pnpm ...).

The two stacks deliberately differ in severity, because refusing these commands is a breaking change:

  • pnpm v11 (TypeScript) warns and names the upcoming removal. Provisioning scripts, Ansible/cloud-init become steps, and CI bootstraps that run sudo pnpm setup or sudo pnpm add -g keep working through the v11 line.
  • pnpm v12 (pacquet) fails with ERR_PNPM_SUDO_NOT_SUPPORTED.

Read-only global commands (bin -g, root -g, list -g, config get -g, ...) are untouched in both stacks, and plain root sessions without SUDO_USER (containers, CI) are unaffected — the guard keys on SUDO_USER precisely so that root-by-design environments never see it.

This is the alternative direction to #13096, which resolved SUDO_USER's home and redirected all home-derived paths there. That approach writes root-owned files into the invoking user's home (there is no SUDO_UID chown), overrides explicit sudo -H/sudo -i intent, and diverges from where the ecosystem settled: npm 9 deleted its SUDO_UID chown machinery (npm/cli#5710) and tells users not to use sudo, and Homebrew refuses root outright. Telling the user plainly is the honest behavior — sudo pnpm install -g is an npm-prefix habit that has no meaningful interpretation for pnpm.

Squash Commit Body

pnpm keeps global packages and configuration in the invoking user's
home directory, so 'sudo pnpm add -g', 'sudo pnpm setup', and
'sudo pnpm self-update' never do what the user wants: they target
root's home and leave root-owned files behind. Other package managers
settled on the same direction - npm 9 removed its SUDO_UID chown
machinery (npm/cli#5710) and tells users not to use sudo, and Homebrew
refuses root outright.

Both stacks detect the same situation: effective uid 0, SUDO_USER
naming a non-root user, and a command that mutates home-directory
state - setup, self-update, or a global write (add, remove, update,
runtime, approve-builds, bare link, config set/delete resolving to
the global scope). They differ only in severity, because refusing
these commands is a breaking change: pnpm v11 warns and names the
v12 removal, so existing provisioning scripts keep working, while
pacquet (v12) fails with ERR_PNPM_SUDO_NOT_SUPPORTED. Read-only
global commands (bin, root, prefix, list, outdated, config get, ...)
still work, and plain root sessions without SUDO_USER are unaffected.

The TypeScript check lives in pnpm11/pnpm/src/checkSudo.ts and runs
once the reporter is initialized, so the warning is not published to
a bus nobody is subscribed to yet. The pacquet check lives in
crates/cli/src/cli_args/sudo_guard.rs and runs before the
pre-command package-manager switch, so pnpm never delegates to a
downloaded CLI as root either.

Related to pnpm/pnpm#13096.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust
    pnpm/ port, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-opus-5).

Summary by CodeRabbit

  • New Features
    • pnpm now detects sudo usage on Unix systems and warns or blocks commands that modify global state, including setup, self-update, global installs, and global configuration changes.
    • Read-only global commands and project-scoped operations remain supported.
    • Blocked operations provide guidance and the ERR_PNPM_SUDO_NOT_SUPPORTED error code.
  • Bug Fixes
    • Prevented global state from being written to the root user’s home directory under sudo.
  • Tests
    • Added coverage for privilege detection and effective configuration scope handling.

zkochan and others added 3 commits July 30, 2026 11:45
pnpm keeps global packages and configuration in the invoking user's
home directory, so 'sudo pnpm add -g', 'sudo pnpm setup', and
'sudo pnpm self-update' never do what the user wants: they target
root's home and leave root-owned files behind. Other package managers
settled on the same direction — npm 9 removed its SUDO_UID chown
machinery and just tells users not to use sudo, and Homebrew refuses
root outright.

Both stacks now fail fast with ERR_PNPM_SUDO_NOT_SUPPORTED when the
effective uid is 0, SUDO_USER names a non-root user, and the command
mutates home-directory state: setup, self-update, or a global write
(add, install, remove, update, runtime, approve-builds, bare link,
config set/delete -g). Read-only global commands (bin, root, prefix,
list, outdated, config get, ...) still work, and plain root sessions
without SUDO_USER are unaffected.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings July 30, 2026 09:50

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 06cd30b8-1e71-4ff4-a079-16f8f3c17b83

📥 Commits

Reviewing files that changed from the base of the PR and between a205d5e and 9bd7bee.

📒 Files selected for processing (3)
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm11/pnpm/src/checkSudo.ts
  • pnpm11/pnpm/src/main.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm11/pnpm/src/main.ts
  • pnpm11/pnpm/src/checkSudo.ts

📝 Walkthrough

Walkthrough

pnpm adds sudo detection for global state mutations in the JavaScript and Rust CLI paths. Read-only global commands and non-global operations remain allowed. The change adds tests and Changesets for warning and error behavior.

Changes

Sudo guard

Layer / File(s) Summary
JavaScript sudo guard
pnpm11/pnpm/src/checkSudo.ts, pnpm11/pnpm/src/main.ts, pnpm11/pnpm/src/checkSudo.test.ts, .changeset/warn-sudo-global.md
Adds sudo detection, effective-scope blocking rules, startup validation, logging tests, command tests, and warning release metadata.
Rust CLI sudo guard
pnpm/crates/cli/src/cli_args.rs, pnpm/crates/cli/src/cli_args/config.rs, pnpm/crates/cli/src/cli_args/sudo_guard.rs, pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs, pnpm/crates/cli/src/lib.rs, .changeset/refuse-sudo-global.md
Adds Unix sudo validation, SudoNotSupportedError, effective configuration-scope handling, early CLI integration, command tests, and error release metadata.

Estimated code review effort: 4 (Complex) | ~45 minutes

Suggested labels: product: pacquet, product: pnpm@11

Suggested reviewers: copilot

Sequence Diagram(s)

sequenceDiagram
  participant CLI as pnpm CLI
  participant Guard as sudo guard
  participant Reporter as reporter or stderr
  CLI->>Guard: validate command and sudo environment
  Guard->>Reporter: emit warning for blocked JavaScript operation
  Guard-->>CLI: return diagnostic for blocked Rust operation
  Guard-->>CLI: allow read-only or non-global operation
Loading
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refuse-sudo-global

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

feat(cli): refuse global writes under sudo (fail fast with ERR_PNPM_SUDO_NOT_SUPPORTED)

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Fail fast when running global-write commands via sudo to avoid writing into root’s home.
• Allow read-only global commands under sudo; keep plain root sessions (no SUDO_USER) unchanged.
• Implement identical guards in both TypeScript (pnpm) and Rust (pacquet) CLIs with matching tests.
Diagram

graph TD
  A([Invoke pnpm]) --> B["TS CLI: main.ts"] --> C{"checkSudo.ts"}
  A --> D["Rust CLI: run_cli"] --> E{"sudo_guard.rs"}
  C -->|"allowed"| F["Proceed to command execution"]
  C -->|"blocked"| G["Throw PnpmError: ERR_PNPM_SUDO_NOT_SUPPORTED"]
  E -->|"allowed"| F
  E -->|"blocked"| H["Return Diagnostic: ERR_PNPM_SUDO_NOT_SUPPORTED"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Redirect globals to invoking user’s home when SUDO_USER is set
  • ➕ Preserves the user’s expectation that sudo pnpm -g affects their global state
  • ➕ Avoids immediate breaking change for users who rely on sudo habits
  • ➖ Can create root-owned files in the invoking user’s home without safe chown handling
  • ➖ Overrides explicit sudo -H/sudo -i intent and can be surprising in CI/containers
  • ➖ Complex cross-platform edge cases around user resolution and permissions
2. Attempt automatic chown / permission repair (SUDO_UID/SUDO_GID)
  • ➕ Could make sudo pnpm -g “work” more often by repairing ownership
  • ➕ Reduces support burden from accidental root-owned files
  • ➖ Security-sensitive behavior; failure modes vary by platform and filesystem
  • ➖ Adds ongoing complexity and can mask bad usage patterns
  • ➖ Ecosystem trend is to discourage sudo rather than auto-fix it

Recommendation: The PR’s fail-fast approach is the safer and more predictable behavior for pnpm’s home-scoped globals. It prevents creating root-owned artifacts in a non-root user’s home, matches the ecosystem direction (discourage sudo), and still permits read-only global inspection commands under sudo while leaving true root sessions (no SUDO_USER) unaffected.

Files changed (8) +298 / -0

Enhancement (5) +138 / -0
cli_args.rsExpose sudo_guard module in Rust CLI args +1/-0

Expose sudo_guard module in Rust CLI args

• Registers the new 'sudo_guard' submodule so the Rust CLI can run the sudo check as part of argument handling.

pnpm/crates/cli/src/cli_args.rs

sudo_guard.rsAdd Rust sudo guard for global-write and setup/self-update commands +92/-0

Add Rust sudo guard for global-write and setup/self-update commands

• Adds a Unix-only guard that detects 'euid == 0' with a non-root 'SUDO_USER' and blocks commands that would write to home-derived global locations. Emits a 'miette' diagnostic with code 'ERR_PNPM_SUDO_NOT_SUPPORTED' and a remediation hint, mirroring the TypeScript implementation.

pnpm/crates/cli/src/cli_args/sudo_guard.rs

lib.rsInvoke Rust sudo guard early in CLI execution +1/-0

Invoke Rust sudo guard early in CLI execution

• Runs 'cli_args::sudo_guard::check_sudo(&args.command)' near the top of 'run_cli()' so pacquet refuses sudo-blocked operations before any pre-command delegation occurs.

pnpm/crates/cli/src/lib.rs

checkSudo.tsAdd TypeScript sudo guard with ERR_PNPM_SUDO_NOT_SUPPORTED +42/-0

Add TypeScript sudo guard with ERR_PNPM_SUDO_NOT_SUPPORTED

• Implements 'checkSudo()' to block home-mutating commands under sudo (setup, self-update, and global write operations) while allowing read-only global operations. Throws 'PnpmError('SUDO_NOT_SUPPORTED')' with a consistent message and hint for opting out ('sudo env -u SUDO_USER ...').

pnpm11/pnpm/src/checkSudo.ts

main.tsCall checkSudo() after parsing global/link semantics +2/-0

Call checkSudo() after parsing global/link semantics

• Wires the new 'checkSudo()' into the main CLI flow after 'link'-implies-global handling, ensuring the correct 'isGlobal' context is used before config loading and command execution.

pnpm11/pnpm/src/main.ts

Tests (2) +154 / -0
tests.rsAdd Rust unit tests covering blocked/allowed sudo scenarios +81/-0

Add Rust unit tests covering blocked/allowed sudo scenarios

• Adds clap-parsed command tests validating which operations are blocked under sudo (setup/self-update/global writes, bare link, config set/delete -g) and which remain allowed (non-root execution, plain root, read-only globals, config get -g).

pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs

checkSudo.test.tsAdd Jest coverage for TypeScript sudo guard behavior +73/-0

Add Jest coverage for TypeScript sudo guard behavior

• Introduces tests ensuring the guard only triggers when running as root under sudo with a non-root 'SUDO_USER', validates the error message/code, and confirms read-only global commands remain permitted.

pnpm11/pnpm/src/checkSudo.test.ts

Documentation (1) +6 / -0
refuse-sudo-global.mdAdd changeset documenting sudo guard for global writes +6/-0

Add changeset documenting sudo guard for global writes

• Introduces a minor-version changeset for both pnpm and pacquet describing the new fail-fast behavior under sudo for global-write operations, while keeping read-only global commands working.

.changeset/refuse-sudo-global.md

Comment thread pnpm11/pnpm/src/checkSudo.ts Resolved
@greptile-apps

greptile-apps Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the previously questioned link --global <package-path> case is correctly guarded because the accepted TypeScript invocation mutates the global package and bin directories.

Reviews (4): Last reviewed commit: "fix(cli): print the sudo warning when no..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pnpm/crates/cli/src/cli_args/sudo_guard.rs`:
- Around line 76-80: Update the Link handling in
pnpm/crates/cli/src/cli_args/sudo_guard.rs around CliCommand::Link so an
explicitly global link returns the existing “pnpm link --global” replacement
regardless of package_paths; preserve the current no-argument behavior. Add a
regression case in pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs covering
“pnpm link --global <package>” and asserting rejection with the matching
replacement output.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 00255689-b377-4e0e-bd1d-ebd9e66c5482

📥 Commits

Reviewing files that changed from the base of the PR and between 8a4d60b and 2f30b39.

📒 Files selected for processing (8)
  • .changeset/refuse-sudo-global.md
  • pnpm/crates/cli/src/cli_args.rs
  • pnpm/crates/cli/src/cli_args/sudo_guard.rs
  • pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs
  • pnpm/crates/cli/src/lib.rs
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm11/pnpm/src/checkSudo.ts
  • pnpm11/pnpm/src/main.ts

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.01     11.9±0.04ms    31.4 MB/sec    1.00     11.8±0.32ms    31.8 MB/sec
packument/parse                                  1.08     39.5±0.15µs  1678.6 MB/sec    1.00     36.6±0.58µs  1812.4 MB/sec
tarball/download_dependency                      1.02      2.3±0.12ms  1886.8 KB/sec    1.00      2.3±0.10ms  1925.8 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    173.8±2.22ms 92.1 KElem/sec    1.02    176.9±7.36ms 90.4 KElem/sec
workspace_resolution/hoist_heavy                 1.00    237.4±0.94ms        ? ?/sec  

@qodo-code-review

qodo-code-review Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (1) 📜 Skill insights (0)

Grey Divider


Action required

1. Rust config writes bypass ✓ Resolved 🐞 Bug ⛨ Security
Description
The sudo guard only treats pnpm config set/delete as global writes when --global is explicitly
provided, but config writes are effectively global by default and can also be global via
--location=global, allowing sudo pnpm config set/delete ... to bypass
ERR_PNPM_SUDO_NOT_SUPPORTED and mutate root’s global config in root’s home directory.
Code

pnpm/crates/cli/src/cli_args/sudo_guard.rs[R81-86]

+        CliCommand::Config(ConfigArgs { command: ConfigSubcommand::Set(args), .. }) => {
+            global_write(args.flags.global, "config set")
+        }
+        CliCommand::Config(ConfigArgs { command: ConfigSubcommand::Delete(args), .. }) => {
+            global_write(args.flags.global, "config delete")
+        }
Relevance

●● Moderate

No direct prior sudo-guard bypass precedent found; team does accept security hardening fixes
generally (e.g., PR #12470).

PR-#12470

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The guard’s decision is based solely on an explicit global flag: in the Rust implementation it
checks args.flags.global (and in the TS wiring main() only derives/passes isGlobal when
--global is present), and checkSudo()/the guard then blocks config writes only when that boolean
is true. However, the config command’s own scope resolution explicitly treats --location as
authoritative and otherwise defaults config writes to global, and it maps --location=global to
global behavior; therefore sudo pnpm config set/delete with no --global (default-global) or with
--location=global can still perform global writes without triggering the sudo guard.

pnpm/crates/cli/src/cli_args/sudo_guard.rs[81-86]
pnpm/crates/cli/src/cli_args/config.rs[203-213]
pnpm11/pnpm/src/main.ts[104-112]
pnpm11/pnpm/src/checkSudo.ts[33-41]
pnpm11/config/commands/src/config.ts[81-91]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The sudo guard determines whether `pnpm config set/delete` should be blocked under sudo using only an explicit `--global`/`isGlobal` signal, but the `pnpm config` implementation resolves the effective scope using `--location` (wins) and otherwise defaults to global. As a result, `sudo pnpm config set/delete ...` can bypass `ERR_PNPM_SUDO_NOT_SUPPORTED` and still write to root-owned global config (in root’s home directory) when no `--global` is specified or when `--location=global` is used.

## Issue Context
- `pnpm config` semantics: `--location` determines scope when provided; otherwise config write operations default to global, and `--location=global` is treated as global.
- The sudo guard should block **effective** global config writes (including default-global behavior), not only explicitly requested `--global`.
- Ideally, the sudo guard should reuse the same scope-resolution logic as the config implementation (via a shared helper) so both stay in sync.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/sudo_guard.rs[66-88]
- pnpm/crates/cli/src/cli_args/config.rs[203-213]
- pnpm11/pnpm/src/main.ts[104-111]
- pnpm11/pnpm/src/checkSudo.ts[33-41]
- pnpm11/config/commands/src/config.ts[81-91]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Unsanitized sudo warning 🐞 Bug ⛨ Security
Description
pnpm11’s new sudo warning interpolates the derived "operation" string directly into globalWarn,
allowing terminal/control-sequence injection when a crafted command token (argv) contains VT/control
characters. This can spoof/mislead terminal output and pollute logs in contexts that preserve
control characters.
Code

pnpm11/pnpm/src/checkSudo.ts[R21-24]

+export function checkSudo (opts: CheckSudoOptions): void {
+  const operation = sudoBlockedOperation(opts)
+  if (operation == null) return
+  globalWarn(`Running "${operation}" with sudo is not supported and will fail in pnpm v12. pnpm installs global packages and writes global configuration inside your home directory, so they do not require root permissions, and running this command as root targets the root user's home directory instead of yours. Rerun the command without sudo. If you really intend to manage the root user's own global packages, run pnpm from a session where the SUDO_USER environment variable is not set (for example: sudo env -u SUDO_USER pnpm ...).`)
Relevance

●●● Strong

Team has accepted sanitizing untrusted interpolated strings in warnings/errors to prevent terminal
escape/control-sequence injection.

PR-#13287
PR-#12287
PR-#13230

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The warning message includes an interpolated operation string and is emitted without any
sanitization. sudoBlockedOperation() can produce operation strings that incorporate the raw
cmd value (derived from argv), and the repo’s existing redactAndSanitize() helper is
specifically designed to strip control characters before logging/warning and is used in other
warning paths.

pnpm11/pnpm/src/checkSudo.ts[21-24]
pnpm11/pnpm/src/checkSudo.ts[36-55]
pnpm11/core/error/src/index.ts[104-123]
pnpm11/deps/github-actions/src/index.ts[175-178]
PR-#13287

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`checkSudo()` logs a warning using an interpolated `operation` string derived from CLI input. Because `operation` can include untrusted control characters (from argv), the warning can inject terminal escape/control sequences.

### Issue Context
The repo already has an established mitigation for this class of bug: `redactAndSanitize()` (from `@pnpm/error`) strips control characters (and redacts inline URL credentials) before printing/logging untrusted text.

### Fix Focus Areas
- pnpm11/pnpm/src/checkSudo.ts[1-55]
- pnpm11/pnpm/src/checkSudo.test.ts[1-65]

### Suggested fix
- Import `redactAndSanitize` from `@pnpm/error`.
- Wrap the warning message before sending it to `globalWarn`, e.g.:
 - `globalWarn(redactAndSanitize(`Running "${operation}" ...`))`
 - (Optionally) sanitize `operation` itself before interpolation.
- Add a regression test that mocks `@pnpm/logger`’s `globalWarn` and asserts that control characters (e.g. `\u001b`, `\r`, `\n`) are stripped from the emitted warning when `cmd` contains them.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. sudo_guard docs mention v11/v12 📘 Rule violation ⚙ Maintainability
Description
A new module/JSDoc comment includes versioned migration narrative about pnpm v11 vs v12 instead
of documenting the current code contract and behavior. This violates the rule that source comments
should avoid historical or migration-oriented commentary.
Code

pnpm/crates/cli/src/cli_args/sudo_guard.rs[R6-9]

+//! `checkSudo` in pnpm v11's `pnpm11/pnpm/src/checkSudo.ts` detects the
+//! same commands under the same condition, but only warns there:
+//! refusing them is a breaking change, so it lands in v12 while v11
+//! gives users a release to migrate.
Relevance

●●● Strong

Recent reviews accepted removing historical/migration commentary from inline docs to avoid drift;
focus on current contract.

PR-#13592

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The cited doc/JSDoc additions explicitly discuss differences across versions (pnpm v11 vs v12)
and rollout/migration behavior, which is inherently historical/migration context rather than a
description of the current module/function’s behavior and guarantees; this directly conflicts with
the checklist requirement that inline documentation focus on the present contract.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/cli/src/cli_args/sudo_guard.rs[6-9]
pnpm11/pnpm/src/checkSudo.ts[18-19]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Inline documentation was updated to include versioned/migration guidance (e.g., `pnpm v11` vs `v12`) rather than describing the current module/function contract and behavior.

## Issue Context
Source comments/docstrings should document current behavior, constraints, and guarantees; migration or version rollout guidance should be moved to changesets, release notes, or the PR description.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/sudo_guard.rs[6-9]
- pnpm11/pnpm/src/checkSudo.ts[18-19]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

4. Changeset uses minor bump ✓ Resolved 📘 Rule violation § Compliance
Description
The changeset marks this as a minor release, but it introduces a new hard failure for
previously-working sudo global/setup/self-update flows, which is potentially a breaking change
requiring user action. Consider using a major bump (or explicitly justify why this is
non-breaking) to match the described behavior change.
Code

.changeset/refuse-sudo-global.md[R2-3]

+"pnpm": minor
+"pacquet": minor
Relevance

● Weak

Similar request to change changeset minor→major for breaking behavior was rejected (PR #13289).

PR-#13289

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires the changeset bump type to match the change impact; the changeset
declares a minor bump (lines 2-3) while also documenting a new failure mode for sudo usage (line
6), which can be interpreted as breaking behavior.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/refuse-sudo-global.md[2-6]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset declares `"pnpm": minor` / `"pacquet": minor`, but the release note states that running certain commands via `sudo` now fails fast with `ERR_PNPM_SUDO_NOT_SUPPORTED`, which may be a breaking behavior change.

## Issue Context
Compliance requires that changesets declare the correct bump type for `pnpm` based on the user-visible impact.

## Fix Focus Areas
- .changeset/refuse-sudo-global.md[2-6]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context used
✅ Compliance rules (platform): 24 rules

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Previous review results

Review updated until commit 9bd7bee ⚖️ Balanced

Results up to commit 2f30b39 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. Rust config writes bypass ✓ Resolved 🐞 Bug ⛨ Security
Description
The sudo guard only treats pnpm config set/delete as global writes when --global is explicitly
provided, but config writes are effectively global by default and can also be global via
--location=global, allowing sudo pnpm config set/delete ... to bypass
ERR_PNPM_SUDO_NOT_SUPPORTED and mutate root’s global config in root’s home directory.
Code

pnpm/crates/cli/src/cli_args/sudo_guard.rs[R81-86]

+        CliCommand::Config(ConfigArgs { command: ConfigSubcommand::Set(args), .. }) => {
+            global_write(args.flags.global, "config set")
+        }
+        CliCommand::Config(ConfigArgs { command: ConfigSubcommand::Delete(args), .. }) => {
+            global_write(args.flags.global, "config delete")
+        }
Relevance

●● Moderate

No direct prior sudo-guard bypass precedent found; team does accept security hardening fixes
generally (e.g., PR #12470).

PR-#12470

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The guard’s decision is based solely on an explicit global flag: in the Rust implementation it
checks args.flags.global (and in the TS wiring main() only derives/passes isGlobal when
--global is present), and checkSudo()/the guard then blocks config writes only when that boolean
is true. However, the config command’s own scope resolution explicitly treats --location as
authoritative and otherwise defaults config writes to global, and it maps --location=global to
global behavior; therefore sudo pnpm config set/delete with no --global (default-global) or with
--location=global can still perform global writes without triggering the sudo guard.

pnpm/crates/cli/src/cli_args/sudo_guard.rs[81-86]
pnpm/crates/cli/src/cli_args/config.rs[203-213]
pnpm11/pnpm/src/main.ts[104-112]
pnpm11/pnpm/src/checkSudo.ts[33-41]
pnpm11/config/commands/src/config.ts[81-91]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The sudo guard determines whether `pnpm config set/delete` should be blocked under sudo using only an explicit `--global`/`isGlobal` signal, but the `pnpm config` implementation resolves the effective scope using `--location` (wins) and otherwise defaults to global. As a result, `sudo pnpm config set/delete ...` can bypass `ERR_PNPM_SUDO_NOT_SUPPORTED` and still write to root-owned global config (in root’s home directory) when no `--global` is specified or when `--location=global` is used.

## Issue Context
- `pnpm config` semantics: `--location` determines scope when provided; otherwise config write operations default to global, and `--location=global` is treated as global.
- The sudo guard should block **effective** global config writes (including default-global behavior), not only explicitly requested `--global`.
- Ideally, the sudo guard should reuse the same scope-resolution logic as the config implementation (via a shared helper) so both stay in sync.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/sudo_guard.rs[66-88]
- pnpm/crates/cli/src/cli_args/config.rs[203-213]
- pnpm11/pnpm/src/main.ts[104-111]
- pnpm11/pnpm/src/checkSudo.ts[33-41]
- pnpm11/config/commands/src/config.ts[81-91]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational
2. Changeset uses minor bump ✓ Resolved 📘 Rule violation § Compliance
Description
The changeset marks this as a minor release, but it introduces a new hard failure for
previously-working sudo global/setup/self-update flows, which is potentially a breaking change
requiring user action. Consider using a major bump (or explicitly justify why this is
non-breaking) to match the described behavior change.
Code

.changeset/refuse-sudo-global.md[R2-3]

+"pnpm": minor
+"pacquet": minor
Relevance

● Weak

Similar request to change changeset minor→major for breaking behavior was rejected (PR #13289).

PR-#13289

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 713436 requires the changeset bump type to match the change impact; the changeset
declares a minor bump (lines 2-3) while also documenting a new failure mode for sudo usage (line
6), which can be interpreted as breaking behavior.

Rule 713436: Explicitly declare pnpm package and correct bump type in changesets
.changeset/refuse-sudo-global.md[2-6]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset declares `"pnpm": minor` / `"pacquet": minor`, but the release note states that running certain commands via `sudo` now fails fast with `ERR_PNPM_SUDO_NOT_SUPPORTED`, which may be a breaking behavior change.

## Issue Context
Compliance requires that changesets declare the correct bump type for `pnpm` based on the user-visible impact.

## Fix Focus Areas
- .changeset/refuse-sudo-global.md[2-6]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit b6e54dc ⚖️ Balanced


No changes from previous review

Results up to commit a205d5e ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. sudo_guard docs mention v11/v12 📘 Rule violation ⚙ Maintainability
Description
A new module/JSDoc comment includes versioned migration narrative about pnpm v11 vs v12 instead
of documenting the current code contract and behavior. This violates the rule that source comments
should avoid historical or migration-oriented commentary.
Code

pnpm/crates/cli/src/cli_args/sudo_guard.rs[R6-9]

+//! `checkSudo` in pnpm v11's `pnpm11/pnpm/src/checkSudo.ts` detects the
+//! same commands under the same condition, but only warns there:
+//! refusing them is a breaking change, so it lands in v12 while v11
+//! gives users a release to migrate.
Relevance

●●● Strong

Recent reviews accepted removing historical/migration commentary from inline docs to avoid drift;
focus on current contract.

PR-#13592

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The cited doc/JSDoc additions explicitly discuss differences across versions (pnpm v11 vs v12)
and rollout/migration behavior, which is inherently historical/migration context rather than a
description of the current module/function’s behavior and guarantees; this directly conflicts with
the checklist requirement that inline documentation focus on the present contract.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/cli/src/cli_args/sudo_guard.rs[6-9]
pnpm11/pnpm/src/checkSudo.ts[18-19]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Inline documentation was updated to include versioned/migration guidance (e.g., `pnpm v11` vs `v12`) rather than describing the current module/function contract and behavior.

## Issue Context
Source comments/docstrings should document current behavior, constraints, and guarantees; migration or version rollout guidance should be moved to changesets, release notes, or the PR description.

## Fix Focus Areas
- pnpm/crates/cli/src/cli_args/sudo_guard.rs[6-9]
- pnpm11/pnpm/src/checkSudo.ts[18-19]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Unsanitized sudo warning 🐞 Bug ⛨ Security
Description
pnpm11’s new sudo warning interpolates the derived "operation" string directly into globalWarn,
allowing terminal/control-sequence injection when a crafted command token (argv) contains VT/control
characters. This can spoof/mislead terminal output and pollute logs in contexts that preserve
control characters.
Code

pnpm11/pnpm/src/checkSudo.ts[R21-24]

+export function checkSudo (opts: CheckSudoOptions): void {
+  const operation = sudoBlockedOperation(opts)
+  if (operation == null) return
+  globalWarn(`Running "${operation}" with sudo is not supported and will fail in pnpm v12. pnpm installs global packages and writes global configuration inside your home directory, so they do not require root permissions, and running this command as root targets the root user's home directory instead of yours. Rerun the command without sudo. If you really intend to manage the root user's own global packages, run pnpm from a session where the SUDO_USER environment variable is not set (for example: sudo env -u SUDO_USER pnpm ...).`)
Relevance

●●● Strong

Team has accepted sanitizing untrusted interpolated strings in warnings/errors to prevent terminal
escape/control-sequence injection.

PR-#13287
PR-#12287
PR-#13230

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The warning message includes an interpolated operation string and is emitted without any
sanitization. sudoBlockedOperation() can produce operation strings that incorporate the raw
cmd value (derived from argv), and the repo’s existing redactAndSanitize() helper is
specifically designed to strip control characters before logging/warning and is used in other
warning paths.

pnpm11/pnpm/src/checkSudo.ts[21-24]
pnpm11/pnpm/src/checkSudo.ts[36-55]
pnpm11/core/error/src/index.ts[104-123]
pnpm11/deps/github-actions/src/index.ts[175-178]
PR-#13287

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`checkSudo()` logs a warning using an interpolated `operation` string derived from CLI input. Because `operation` can include untrusted control characters (from argv), the warning can inject terminal escape/control sequences.

### Issue Context
The repo already has an established mitigation for this class of bug: `redactAndSanitize()` (from `@pnpm/error`) strips control characters (and redacts inline URL credentials) before printing/logging untrusted text.

### Fix Focus Areas
- pnpm11/pnpm/src/checkSudo.ts[1-55]
- pnpm11/pnpm/src/checkSudo.test.ts[1-65]

### Suggested fix
- Import `redactAndSanitize` from `@pnpm/error`.
- Wrap the warning message before sending it to `globalWarn`, e.g.:
 - `globalWarn(redactAndSanitize(`Running "${operation}" ...`))`
 - (Optionally) sanitize `operation` itself before interpolation.
- Add a regression test that mocks `@pnpm/logger`’s `globalWarn` and asserts that control characters (e.g. `\u001b`, `\r`, `\n`) are stripped from the emitted warning when `cmd` contains them.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@codecov-commenter

codecov-commenter commented Jul 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.08%. Comparing base (0f1c467) to head (9bd7bee).
⚠️ Report is 92 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/cli/src/cli_args/sudo_guard.rs 89.74% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13495      +/-   ##
==========================================
+ Coverage   87.86%   88.08%   +0.22%     
==========================================
  Files         549      608      +59     
  Lines       96091    99032    +2941     
==========================================
+ Hits        84429    87235    +2806     
- Misses      11662    11797     +135     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Config set/delete write to the global config file by default: --location
wins, and without it the operation is global even with no --global flag.
The guard previously keyed on the explicit flag alone, so a bare
'sudo pnpm config set' slipped past it. Both stacks now resolve the
effective scope (pacquet reuses the config command's resolve_global)
and only --location=project writes stay allowed under sudo.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 30, 2026 10:11

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs (1)

74-75: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use a regular rationale comment, or remove this rustdoc.

/// is for API contracts; this private-test doc repeats the cases asserted below. Use // only if retaining the scope-resolution rationale.

As per coding guidelines, “Use rustdoc comments for public API contracts” and “Do not duplicate test behavior in documentation.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs` around lines 74 - 75,
Replace the rustdoc comments above the private test with regular // comments, or
remove them entirely. If retaining context, keep only the scope-resolution
rationale and avoid documenting the test cases or assertions covered below.

Sources: Coding guidelines, Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs`:
- Around line 74-75: Replace the rustdoc comments above the private test with
regular // comments, or remove them entirely. If retaining context, keep only
the scope-resolution rationale and avoid documenting the test cases or
assertions covered below.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ca8ffae-3e84-4804-8df4-0a91fb63c8dc

📥 Commits

Reviewing files that changed from the base of the PR and between 2f30b39 and b6e54dc.

📒 Files selected for processing (6)
  • pnpm/crates/cli/src/cli_args/config.rs
  • pnpm/crates/cli/src/cli_args/sudo_guard.rs
  • pnpm/crates/cli/src/cli_args/sudo_guard/tests.rs
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm11/pnpm/src/checkSudo.ts
  • pnpm11/pnpm/src/main.ts

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 30, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit b6e54dc

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: a205d5e93ccf

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.538 ± 0.148 2.365 2.781 1.70 ± 0.19
pacquet@main 2.539 ± 0.189 2.335 2.773 1.70 ± 0.21
pnpr@HEAD 1.497 ± 0.147 1.344 1.757 1.00
pnpr@main 1.569 ± 0.170 1.344 1.758 1.05 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5382231577,
      "stddev": 0.14815466333880287,
      "median": 2.514594155,
      "user": 1.5495970999999997,
      "system": 1.26672356,
      "min": 2.3652343030000003,
      "max": 2.781154677,
      "times": [
        2.781154677,
        2.450068082,
        2.388102462,
        2.3652343030000003,
        2.7017503950000004,
        2.551476805,
        2.4777115050000003,
        2.564827449,
        2.3981631090000004,
        2.70374279
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 2.5390875234000005,
      "stddev": 0.1891802818333222,
      "median": 2.521125024,
      "user": 1.5095071,
      "system": 1.29712166,
      "min": 2.335311346,
      "max": 2.772833894,
      "times": [
        2.7373649030000005,
        2.362391342,
        2.358698307,
        2.7386758880000004,
        2.6977843550000005,
        2.345565151,
        2.772833894,
        2.335311346,
        2.421756078,
        2.62049397
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4971734942000001,
      "stddev": 0.14670807346178302,
      "median": 1.462954564,
      "user": 1.0413118000000001,
      "system": 1.11305486,
      "min": 1.3440427799999999,
      "max": 1.7568303029999999,
      "times": [
        1.416492533,
        1.509416595,
        1.693596375,
        1.7568303029999999,
        1.6001684600000001,
        1.361628824,
        1.368900267,
        1.529061057,
        1.391597748,
        1.3440427799999999
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.5693943220000002,
      "stddev": 0.17009088792946145,
      "median": 1.613794691,
      "user": 1.0442202999999999,
      "system": 1.15491596,
      "min": 1.343817808,
      "max": 1.758480761,
      "times": [
        1.745349107,
        1.7213100239999999,
        1.695490756,
        1.758480761,
        1.538123044,
        1.3837645729999999,
        1.444706525,
        1.6894663380000001,
        1.343817808,
        1.373434284
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 293.9 ± 19.7 266.8 330.7 1.06 ± 0.11
pacquet@main 277.0 ± 21.4 254.8 332.3 1.00
pnpr@HEAD 298.2 ± 17.7 274.5 325.2 1.08 ± 0.11
pnpr@main 309.1 ± 33.9 280.2 396.4 1.12 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.29393924436,
      "stddev": 0.019734667783567587,
      "median": 0.28912133996,
      "user": 0.24582542,
      "system": 0.5566023999999999,
      "min": 0.26682051996,
      "max": 0.33070611095999997,
      "times": [
        0.28657979196,
        0.28589558996,
        0.26871397395999996,
        0.33070611095999997,
        0.31379545296,
        0.26682051996,
        0.28733933396,
        0.30461936396,
        0.29090334596,
        0.30401895996
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.27696346675999994,
      "stddev": 0.021423699214234617,
      "median": 0.27168373995999995,
      "user": 0.21867482000000002,
      "system": 0.5457845000000001,
      "min": 0.25484473996,
      "max": 0.33231182796,
      "times": [
        0.33231182796,
        0.28179011496,
        0.27806420896,
        0.26640207596,
        0.27525033196,
        0.25484473996,
        0.26811714795999997,
        0.26703465096,
        0.26219984896,
        0.28361971996
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.29822055975999995,
      "stddev": 0.017725296046108945,
      "median": 0.29699570696,
      "user": 0.22431362000000005,
      "system": 0.5801996,
      "min": 0.27448815496,
      "max": 0.32517268196,
      "times": [
        0.31029965896,
        0.28456400796,
        0.29215879695999997,
        0.28937602596,
        0.32517268196,
        0.30933913996,
        0.30183261695999997,
        0.27565941796,
        0.27448815496,
        0.31931509596
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.30913040816,
      "stddev": 0.03393027664234584,
      "median": 0.29554765496,
      "user": 0.24879282000000003,
      "system": 0.5782673,
      "min": 0.28016242195999996,
      "max": 0.39639491696,
      "times": [
        0.31597568396,
        0.29022048695999997,
        0.29309252496,
        0.31829420595999997,
        0.29776592896,
        0.28016242195999996,
        0.29332938096,
        0.28421469096,
        0.32185383996,
        0.39639491696
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.314 ± 0.327 2.703 3.751 2.10 ± 0.29
pacquet@main 3.395 ± 0.044 3.344 3.498 2.16 ± 0.20
pnpr@HEAD 1.955 ± 0.167 1.760 2.204 1.24 ± 0.16
pnpr@main 1.575 ± 0.147 1.470 1.867 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.31360406916,
      "stddev": 0.3268926652872418,
      "median": 3.3377039692599997,
      "user": 2.90861248,
      "system": 2.4436844399999997,
      "min": 2.7029740247599996,
      "max": 3.75126047776,
      "times": [
        2.7029740247599996,
        2.89211643176,
        3.34025857376,
        3.64313779076,
        3.23169682276,
        3.57450519876,
        3.4636351467599997,
        3.20130685976,
        3.75126047776,
        3.33514936476
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 3.39521316536,
      "stddev": 0.04425891795708926,
      "median": 3.38209537926,
      "user": 3.1740021799999996,
      "system": 2.5632221399999997,
      "min": 3.3440624787599997,
      "max": 3.4975036517599998,
      "times": [
        3.39201980476,
        3.4330836577599997,
        3.36700538876,
        3.4975036517599998,
        3.3640538307599996,
        3.37217095376,
        3.4098220707599998,
        3.37150262176,
        3.40090719476,
        3.3440624787599997
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.9551663309600003,
      "stddev": 0.16723601116034895,
      "median": 1.93423967626,
      "user": 1.96080918,
      "system": 2.18696294,
      "min": 1.76018810976,
      "max": 2.20368380476,
      "times": [
        1.9658433477600001,
        2.20368380476,
        1.90263600476,
        1.76018810976,
        1.78047407376,
        2.15429773876,
        2.01943177676,
        1.76466434876,
        1.8690574907600002,
        2.1313866137599997
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 1.57516300626,
      "stddev": 0.14651168644218585,
      "median": 1.4896947747600002,
      "user": 1.12489738,
      "system": 1.23661214,
      "min": 1.47033672576,
      "max": 1.8668571397600002,
      "times": [
        1.55499176676,
        1.8668571397600002,
        1.47489252676,
        1.6752012047600002,
        1.49507718376,
        1.47593418776,
        1.47033672576,
        1.4843123657600001,
        1.77991456476,
        1.47411239676
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 555.4 ± 134.8 394.0 689.0 1.80 ± 0.44
pacquet@main 398.0 ± 18.0 377.3 438.4 1.29 ± 0.07
pnpr@HEAD 309.2 ± 7.2 299.6 321.5 1.00
pnpr@main 319.7 ± 20.4 305.3 374.8 1.03 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.55538684016,
      "stddev": 0.13475650608903142,
      "median": 0.63101099006,
      "user": 0.72550234,
      "system": 0.91110958,
      "min": 0.39402759706,
      "max": 0.6890471660599999,
      "times": [
        0.39593583006000005,
        0.66315865806,
        0.6890471660599999,
        0.59961580106,
        0.66974452106,
        0.66240617906,
        0.66541517406,
        0.40447996906000006,
        0.41003750606000006,
        0.39402759706
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.39795924646,
      "stddev": 0.017989084255018564,
      "median": 0.39034990556000004,
      "user": 0.5236306399999999,
      "system": 0.68248168,
      "min": 0.37726085206000004,
      "max": 0.43836523206000005,
      "times": [
        0.43836523206000005,
        0.38484503206000004,
        0.41304538806,
        0.37726085206000004,
        0.38900577406000003,
        0.39169403706000006,
        0.40747854506000003,
        0.40273208706,
        0.38893651406,
        0.38622900306
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30918112386,
      "stddev": 0.00722294195417054,
      "median": 0.30914852156000006,
      "user": 0.20559834000000002,
      "system": 0.5350667800000001,
      "min": 0.29961809906000003,
      "max": 0.32152137706,
      "times": [
        0.29961809906000003,
        0.30242088806,
        0.30841157706,
        0.31887367806,
        0.30987494706,
        0.31011184106,
        0.31205722506,
        0.30842209606000004,
        0.32152137706,
        0.30049951006000003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.31968686246000005,
      "stddev": 0.020439604538790228,
      "median": 0.31117276806000005,
      "user": 0.22466313999999996,
      "system": 0.53280008,
      "min": 0.30530585206000005,
      "max": 0.37483046606000003,
      "times": [
        0.30981806006,
        0.30530585206000005,
        0.31054927006000005,
        0.31622068006000004,
        0.31026820306,
        0.30898232506,
        0.37483046606000003,
        0.32272838706,
        0.32636911506000005,
        0.31179626606000005
      ]
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.766 ± 0.027 1.722 1.808 5.52 ± 0.19
pacquet@main 1.771 ± 0.013 1.754 1.789 5.54 ± 0.18
pnpr@HEAD 0.320 ± 0.010 0.307 0.338 1.00
pnpr@main 0.332 ± 0.018 0.303 0.358 1.04 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.7664274811200003,
      "stddev": 0.027342333064995113,
      "median": 1.76670922522,
      "user": 0.7801713,
      "system": 0.77885144,
      "min": 1.72188924372,
      "max": 1.8077749377199999,
      "times": [
        1.77627209272,
        1.77846642372,
        1.8077749377199999,
        1.80123196372,
        1.73695046772,
        1.7480716347199998,
        1.72188924372,
        1.75714635772,
        1.78014059772,
        1.75633109172
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.7711883053199997,
      "stddev": 0.013012967354131039,
      "median": 1.7681199427199998,
      "user": 0.7814566000000002,
      "system": 0.7733718399999999,
      "min": 1.75426279872,
      "max": 1.78872255872,
      "times": [
        1.78687947672,
        1.7561609027199998,
        1.75426279872,
        1.7641675857199999,
        1.7623909787199998,
        1.76871320872,
        1.78872255872,
        1.76752667672,
        1.7745300607199999,
        1.78852880572
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.31972397822000004,
      "stddev": 0.010106348289908532,
      "median": 0.31569891372000003,
      "user": 0.21325089999999997,
      "system": 0.53569584,
      "min": 0.30718734772000006,
      "max": 0.33807001572000006,
      "times": [
        0.30881471672000005,
        0.32451949872,
        0.31406310672000004,
        0.33807001572000006,
        0.33206159272,
        0.32628207872000003,
        0.31569911972000003,
        0.31569870772,
        0.30718734772000006,
        0.31484359772000003
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.33182974792000003,
      "stddev": 0.017970933308273044,
      "median": 0.33083217572,
      "user": 0.211092,
      "system": 0.57854394,
      "min": 0.30326552372000004,
      "max": 0.35794504672000005,
      "times": [
        0.32707992372000005,
        0.30738150172000006,
        0.30326552372000004,
        0.34283159372000005,
        0.33650908272,
        0.35794504672000005,
        0.33439202772000004,
        0.32569701372000004,
        0.35592344172000007,
        0.32727232372000004
      ]
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 202.3 ± 14.8 190.4 231.2 2.21 ± 0.17
pacquet@main 193.7 ± 11.3 186.1 233.4 2.11 ± 0.13
pnpr@HEAD 92.3 ± 3.4 84.6 105.9 1.01 ± 0.04
pnpr@main 91.7 ± 2.1 87.9 94.6 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.20232214956000005,
      "stddev": 0.014845887104653396,
      "median": 0.19482015436000003,
      "user": 0.1855239333333333,
      "system": 0.07442389999999999,
      "min": 0.19040137836,
      "max": 0.23120091736000004,
      "times": [
        0.19096948236000003,
        0.19040137836,
        0.19393262136000003,
        0.19499145436000004,
        0.19184532236000001,
        0.22451477736000003,
        0.19430452736000003,
        0.19077213236,
        0.19482015436000003,
        0.22442734136000003,
        0.19961132736000003,
        0.22230249336000002,
        0.19741593536000002,
        0.23120091736000004,
        0.19332237836000002
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 0.19373494349333334,
      "stddev": 0.011328441132919611,
      "median": 0.19095082736000002,
      "user": 0.18278693333333332,
      "system": 0.06412123333333333,
      "min": 0.18614801236000003,
      "max": 0.23338888636000002,
      "times": [
        0.19105603436000002,
        0.18912785336000001,
        0.23338888636000002,
        0.19273329536000003,
        0.19130568236000003,
        0.18899425336000003,
        0.18854612336,
        0.19805791736000003,
        0.19254844936,
        0.19419519336000002,
        0.18999596836000002,
        0.18809965836000003,
        0.18614801236000003,
        0.19087599736000002,
        0.19095082736000002
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09233068671483873,
      "stddev": 0.0034338290005929304,
      "median": 0.09206862036,
      "user": 0.024906535483870968,
      "system": 0.009095745161290322,
      "min": 0.08458246936000001,
      "max": 0.10594956736000001,
      "times": [
        0.09277214736,
        0.09165170936,
        0.09511655836,
        0.08913590836,
        0.09306914336000001,
        0.09021548936,
        0.09378133736000001,
        0.10594956736000001,
        0.08458246936000001,
        0.08822174636,
        0.09478881436,
        0.09476175436,
        0.09319430936,
        0.09047844236000001,
        0.09201032136000001,
        0.09125611736,
        0.09206862036,
        0.09219139936000001,
        0.09135133636000001,
        0.09231703536000001,
        0.09684934336,
        0.09155382636,
        0.09171247336,
        0.09078298236,
        0.09312350536000001,
        0.09154703336,
        0.09219155036,
        0.09351625136000001,
        0.08931913936000001,
        0.09358200436,
        0.08915895136
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 0.09170605869333334,
      "stddev": 0.0020855929561119915,
      "median": 0.09194576536000001,
      "user": 0.022085499999999997,
      "system": 0.011592323333333333,
      "min": 0.08786356436000001,
      "max": 0.09459030136,
      "times": [
        0.09300980336,
        0.08909274636,
        0.08790423036,
        0.09171893536,
        0.09250574836,
        0.09422881636000001,
        0.08910036036,
        0.09433452436,
        0.09436831636000001,
        0.09263388936,
        0.09459030136,
        0.08831064236000001,
        0.09200259636000001,
        0.09188893436000001,
        0.09078183036000001,
        0.09289404536000001,
        0.09085100036,
        0.09124908436000001,
        0.08786356436000001,
        0.09435340836,
        0.08949174436,
        0.09348812836,
        0.08880877536000001,
        0.09216287736,
        0.09381900836000001,
        0.09220547736000001,
        0.09017524336,
        0.09409901236000001,
        0.09142358136,
        0.09182513436
      ]
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 993.1 ± 175.9 682.4 1294.4 1.00
pacquet@main 1156.6 ± 253.4 703.1 1553.3 1.16 ± 0.33
pnpm@HEAD 3405.9 ± 98.7 3268.9 3547.6 3.43 ± 0.62
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.9930709523222221,
      "stddev": 0.17591119869221752,
      "median": 0.9796662681,
      "user": 0.952015382222222,
      "system": 0.16128595999999995,
      "min": 0.6823846211000001,
      "max": 1.2944455561,
      "times": [
        0.6823846211000001,
        1.2944455561,
        0.9983922201000001,
        0.9606895371,
        1.1846106961,
        0.9050316651000001,
        1.0470399221,
        0.9796662681,
        0.8853780851
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 1.1565832292111111,
      "stddev": 0.2534224017709868,
      "median": 1.2070164510999999,
      "user": 1.1020269377777778,
      "system": 0.2144801822222222,
      "min": 0.7030834181000001,
      "max": 1.5532636251,
      "times": [
        0.7030834181000001,
        0.9341095351,
        1.0857819611,
        1.2070164510999999,
        1.2106579010999998,
        1.5532636251,
        1.3146882181,
        1.3763456471,
        1.0243023060999998
      ]
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.405870222877778,
      "stddev": 0.09874254899019504,
      "median": 3.3945089911,
      "user": 5.26316316,
      "system": 0.3047744044444444,
      "min": 3.2689133041,
      "max": 3.5475736750999998,
      "times": [
        3.2849050961,
        3.5475736750999998,
        3.4296361611,
        3.3945089911,
        3.2689133041,
        3.4862929131,
        3.3361887241,
        3.5163699151,
        3.3884432260999997
      ]
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.490 ± 0.066 4.413 4.618 1.27 ± 0.03
pacquet@main 4.645 ± 0.193 4.445 4.971 1.31 ± 0.06
pnpr@HEAD 3.543 ± 0.066 3.471 3.690 1.00
pnpr@main 3.550 ± 0.098 3.477 3.794 1.00 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.4901380683,
      "stddev": 0.06616702267811429,
      "median": 4.4611363205,
      "user": 1.77382222,
      "system": 1.3732158799999998,
      "min": 4.412749725,
      "max": 4.6178328340000006,
      "times": [
        4.451723695,
        4.5209457010000005,
        4.6178328340000006,
        4.452088559,
        4.412749725,
        4.470184082,
        4.449696058000001,
        4.5811301890000005,
        4.506432402000001,
        4.438597438
      ]
    },
    {
      "command": "pacquet@main",
      "mean": 4.6453310391,
      "stddev": 0.19285746033068532,
      "median": 4.565004417000001,
      "user": 2.0359962200000004,
      "system": 1.5091970799999999,
      "min": 4.444747078000001,
      "max": 4.970706076000001,
      "times": [
        4.444747078000001,
        4.882804307000001,
        4.477466373,
        4.709370696000001,
        4.84495527,
        4.531170387,
        4.598838447,
        4.477924482000001,
        4.970706076000001,
        4.515327275000001
      ]
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5428161155000004,
      "stddev": 0.06576812653285712,
      "median": 3.520727127,
      "user": 1.46400562,
      "system": 1.3712959799999997,
      "min": 3.470915087,
      "max": 3.689783508,
      "times": [
        3.689783508,
        3.495815922,
        3.618023025,
        3.470915087,
        3.5051434649999997,
        3.526267596,
        3.551320395,
        3.5151866579999997,
        3.502180274,
        3.553525225
      ]
    },
    {
      "command": "pnpr@main",
      "mean": 3.5498708592999995,
      "stddev": 0.098059237791688,
      "median": 3.5080507744999996,
      "user": 1.35617152,
      "system": 1.34166618,
      "min": 3.476959354,
      "max": 3.793966414,
      "times": [
        3.497857947,
        3.5393646089999997,
        3.4771790449999997,
        3.5024415569999996,
        3.499941524,
        3.793966414,
        3.5617520099999997,
        3.5136599919999996,
        3.6355861409999997,
        3.476959354
      ]
    }
  ]
}

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13495
Testbedpacquet
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,702.97 ms
(+0.44%)Baseline: 2,691.15 ms
3,229.38 ms
(83.70%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,721.89 ms
(-4.80%)Baseline: 1,808.66 ms
2,170.39 ms
(79.34%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
394.03 ms
(-12.23%)Baseline: 448.95 ms
538.75 ms
(73.14%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
190.40 ms
(-8.46%)Baseline: 208.00 ms
249.60 ms
(76.28%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,365.23 ms
(-2.53%)Baseline: 2,426.56 ms
2,911.87 ms
(81.23%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,412.75 ms
(-1.67%)Baseline: 4,487.69 ms
5,385.23 ms
(81.94%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
266.82 ms
(-6.35%)Baseline: 284.92 ms
341.90 ms
(78.04%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
682.38 ms
(-1.08%)Baseline: 689.81 ms
827.77 ms
(82.44%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13495
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,760.19 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
307.19 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
299.62 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
84.58 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,344.04 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,470.92 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
274.49 ms
🐰 View full continuous benchmarking report in Bencher

Refusing global operations under sudo is a breaking change: provisioning
scripts and CI setups that run `sudo pnpm setup` or `sudo pnpm add -g`
with SUDO_USER set would stop working on a minor release. Keep the
detection in the TypeScript CLI but downgrade it to a warning that names
the v12 removal; pacquet (v12) keeps the hard ERR_PNPM_SUDO_NOT_SUPPORTED
failure.

The warning is emitted after the reporter is initialized, otherwise it
would be logged to a bus nobody is subscribed to yet.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings August 5, 2026 11:25

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zkochan zkochan changed the title feat(cli): refuse global operations under sudo feat(cli): warn on global operations under sudo, refuse them in v12 Aug 5, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit a205d5e

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pnpm11/pnpm/src/main.ts`:
- Line 218: Add a process.stderr fallback sink in the `@pnpm/logger` globalWarn
path so warnings emitted by checkSudo before initReporter() remain visible for
--json and --parseable flows, while preserving the existing bole warning
behavior when a reporter is configured. Add an integration test covering
checkSudo invocation in both parseable output modes and verify the warning is
written to stderr.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 059d8849-f470-4282-8ba6-a33661fe97c9

📥 Commits

Reviewing files that changed from the base of the PR and between b6e54dc and a205d5e.

📒 Files selected for processing (6)
  • .changeset/refuse-sudo-global.md
  • .changeset/warn-sudo-global.md
  • pnpm/crates/cli/src/cli_args/sudo_guard.rs
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm11/pnpm/src/checkSudo.ts
  • pnpm11/pnpm/src/main.ts
💤 Files with no reviewable changes (1)
  • .changeset/refuse-sudo-global.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • pnpm11/pnpm/src/checkSudo.test.ts
  • pnpm/crates/cli/src/cli_args/sudo_guard.rs

Comment thread pnpm11/pnpm/src/main.ts Resolved
With --json or --parseable, main() never calls initReporter(), so a
globalWarn() goes into a log stream nobody reads and the deprecation
notice is lost. Fall back to console.warn(formatWarn(...)) in that
case, the way getConfig() already prints its pre-reporter warnings.
stdout stays machine-parseable either way. loglevel=silent still
suppresses the warning, since that path does initialize a reporter.

Drop the checkSudo doc comment: it restated the warning text.
Copilot AI review requested due to automatic review settings August 5, 2026 12:00

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 9bd7bee

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit bdb25ee into main Aug 5, 2026
36 of 38 checks passed
@zkochan
zkochan deleted the refuse-sudo-global branch August 5, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet product: pnpm@11 reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants