Skip to content

Audit the remaining pacquet references after the crate rename #36

Open

Description

@KSXGitHub

Scan snapshot

All line references below are permalinks pinned to 719f62f1 (main, 2026-08-17, test: type the install option helpers so a stale key cannot pass pnpm/pnpm#13951).

Counts are case-insensitive git grep -c -i pacquet over that tree:

Area Occurrences
pnpm/ (Rust + docs) 4831
.changeset/ 499
pnpm11/ (TypeScript) 337
.github/ 79
root Cargo.toml 6
pnpm-workspace.yaml 3
Repo-wide 5857

pnpm/pnpm#13948 renamed the Rust crates from pacquet-* to pnpm-*. It did not touch identifiers, prose, log targets, or on-disk paths, so most of the 5857 survived. This issue sorts them into what is intentional and should stay, what is factually wrong today, and what is merely inconsistent.

The rule these are judged against

CLAUDE.md states the policy plainly:

Use pacquet as the changeset package name, but use pnpm in its release-note prose and command examples (pnpm add, not pacquet add). The published Rust CLI's executable is pnpm; pacquet is only its in-repo package identifier.

So pacquet naming an in-repo package or the product itself is correct. pacquet naming a command a user types, a directory on disk, or a crate is not. .changeset/pacquet-user-facing-pnpm-naming.md already applied that rule to --help text and error messages; the items in Tier 1 are the same class of bug in surfaces that pass missed.


Tier 1 — user-visible, and wrong today

1a. pnpm dlx writes its virtual store to node_modules/.pacquet

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cli/src/cli_args/dlx.rs#L327

Every other path resolves the default to node_modules/.pnpm:

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/config/src/lib.rs#L2503

The comment directly under the dlx line documents a deliberate deviation from pnpm — but that deviation is about enable_global_virtual_store, not about the directory's name. The name looks like a leftover, and store layout is on the user-visible list in CLAUDE.md. No test pins .pacquet for dlx, so this appears free to change.

1b. pnpm pack-app writes a manifest named pacquet-pack-app-<target>

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cli/src/cli_args/pack_app.rs#L565

This package.json lands in the user's runtime install directory, so the name is observable.

1c. tracing targets are namespaced pacquet::* (122 occurrences)

Users select these with RUST_LOG, which makes the namespace part of the CLI's surface. Twelve distinct targets, led by pacquet::download (31) and pacquet::install (19):

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/tarball/src/download.rs#L282

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/package-manager/src/install/run.rs#L744

Renaming these is a breaking change for anyone filtering on them, so it needs a deliberate call rather than a sweep — hence flagging rather than fixing.


Tier 2 — factually wrong after pnpm/pnpm#13948

2a. A crate that no longer exists

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/Cargo.toml#L302

The addon is pnpm-napi, declared 255 lines above:

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/Cargo.toml#L47

2b. Workspace package metadata points at an archived repository

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/Cargo.toml#L7-L12

pnpm/pacquet was archived on 2026-07-21 and its README says the project moved here. Every crate in the workspace inherits homepage and repository from these three lines.

2c. Rustdoc describing the virtual store as node_modules/.pacquet

These state a layout the code does not produce (see 1a — the default is .pnpm):

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/deps-restorer/src/install_frozen_lockfile.rs#L64-L65

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/deps-restorer/src/create_virtual_store.rs#L109

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cmd-shim/src/lib.rs#L11

2d. Crate descriptions naming the old scheme

Published description fields on crates that are themselves now pnpm-*:

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/testing-utils/Cargo.toml#L4

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/fs/Cargo.toml#L3

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/network/Cargo.toml#L3

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/crypto-hash/Cargo.toml#L3

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cmd-shim/Cargo.toml#L3

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/tasks/registry-mock/Cargo.toml#L4


Tier 3 — 263 rustdoc references to commands that cannot be run

Across 129 files under pnpm/crates/, doc comments document subcommands as `pacquet <cmd>`. Most frequent: pacquet update (37), pacquet install (32), pacquet add (16), pacquet rebuild (12). Many are the module-level //! header, so they are the first thing a reader of that module sees:

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cli/src/cli_args/config.rs#L1

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cli/src/cli_args/outdated.rs#L1

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/crates/cli/src/cli_args/logout.rs#L1

Note the distinction that makes this a bounded, mechanical fix: `pacquet install` (an invocation) is wrong, while "pacquet's equivalent is …" or "pacquet mirrors pnpm's …" (the product as a subject) is correct and must be left alone. Only the backticked-command form should be rewritten.


Tier 4 — stale project documentation

https://github.com/pnpm/pnpm/blob/719f62f102edcfdf1e2ebfea2f47713f1f0218fe/pnpm/CONTRIBUTING.md#L1-L11

This still frames the project as Stage 1 — Headless installer, scoped by a roadmap issue in the archived repository, and says other top-level commands "are not receiving feature work" and that PRs outside Stage 1 "will be closed". CLAUDE.md now describes the two stacks as being at "near-complete feature parity" and "developed together". A contributor following this file today would be turned away from work the project actually wants.


Tier 5 — internal only, cosmetic

334 occurrences of the test helpers pacquet_at / pacquet_in / pacquet_cmd / pacquet_bin, plus temp-directory prefixes such as pacquet-store-dir-workspace and pacquet-registry-mock-*. Nothing is wrong with these; they are just inconsistent with the crate names now. Worth a sweep only when it does not collide with in-flight work, since the rename touches a large fraction of the test suite.


Deliberately not stale — leave these alone

  • .changeset/ (499) — pacquet is the mandated changeset package name. CLAUDE.md is explicit that a Rust-only changeset targets pacquet and must not name pnpm.
  • pnpm/npm/pnpm/package.json#L1-L4 — the workspace package is pacquet precisely so its name cannot collide with the TypeScript CLI; publishConfig.name rewrites it to pnpm at pack time. This is the mechanism, not a leftover.
  • pnpm-workspace.yaml#L61-L81 — the versioning.fixed and versioning.lanes entries key on that same package name.
  • pnpm11/ (337) — pacquet and @pnpm/pacquet are real published npm package names consumed as configDependencies, so runPacquet.ts, verifyPacquetIdentity.ts and the PACQUET_INSTALL_FAILED / PACQUET_IDENTITY_MISMATCH error codes all name something users genuinely install. Renaming these would break the contract.
  • Links to github.com/pnpm/pacquet (72) — the repository is archived but still readable, so these citations resolve to the discussions they cite. They are history, not dead links. Only the two Cargo.toml metadata fields in 2b are wrong, because those claim to say where the code lives now.
  • completion.rs#L191 — accepting pacquet alongside pnpm as an argv[0] is back-compat for anyone who installed the binary under the old name.
  • .github/workflows/pacquet-*.yml (79) — workflow filenames and display names ("Pacquet CI") are product names, and the Bencher testbed identifiers (pacquet.ubuntu, pacquet-tests-all.json) are part of a stored threshold model. Renaming them silently resets historical benchmark baselines, so they should only move as a deliberate, coordinated change.

Suggested sequencing

  1. Tier 1a/1b and Tier 2 — small, self-contained, and each fixes something that is untrue today. 1a needs a changeset (pacquet) since it changes on-disk layout.
  2. Tier 4 — one file, and it is actively misdirecting contributors.
  3. Tier 3 — mechanical but wide; best as one sweep so review is a single pass.
  4. Tier 1c and Tier 5 — need a decision first (breaking-change budget for the log targets, timing for the test-helper rename).

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

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added theissue type on Aug 17, 2026
  3. fumikun commented on Sep 26, 2026

    @fumikun

    I'm working on a fix for this, scoped to Tier 1a (pnpm dlx virtual store under node_modules/.pacquet) and Tier 1b (pacquet-pack-app-<target> manifest name).


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

  4. transferred this issue frompnpm/pnpmon Sep 26, 2026
  5. zkochan commented on Nov 8, 2026

    @zkochan
    Member

    Status check against main (2026-11-08).

    Done: Tier 1a/1b (pnpm/pnpm#15840: dlx uses .pnpm, the manifest is pnpm-pack-app-*) and Tier 4 (pnpm/CONTRIBUTING.md rewritten).

    Left: the root Cargo.toml homepage/repository/description, crate descriptions, about 277 backticked pacquet <cmd> references in docs, pacquet::* tracing targets, and test-helper names.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions