Skip to content

[pull] main from pnpm:main - #438

Merged
pull[bot] merged 12 commits into
dwongdev:mainfrom
pnpm:main
Jul 23, 2026
Merged

pull[bot] merged 12 commits into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

zkochan and others added 12 commits July 23, 2026 18:13
…lpha.19 (#13241)

* chore(release): drop the packing workarounds now that pacquet 12.0.0-alpha.19 is pinned

The pinned pacquet now carries the fs-packlist fix from
#13231, so a files allowlist wins over
workspace-inherited ignore rules and the release workflow no longer
needs to neutralize them: remove the empty pnpm11/pnpm/.npmignore
override, the temporary root .gitignore shadow, and the pre-publish
payload verification step (with its script) that guarded against the
now-fixed empty-tarball packing bug. The payload-verify step was also
what broke the v11.17.0 release: its filtered pn list fired a
verifyDepsBeforeRun auto-install that pruned the excluded pnpm
project's node_modules, so the darwin-arm64 artifact's prepublishOnly
could no longer resolve symlink-dir.

`@pnpm/prepare` and `@pnpm/prepare-temp-dir` were the only
publishable packages without a files allowlist; their lib/ payload
survived packing only through the .gitignore shadow. Give them files
allowlists so their tarballs no longer depend on workspace ignore
state.

* chore: record the pacquet 12.0.0-alpha.19 pin in the lockfile

* chore: drop the changeset - both files-allowlist fixes ship without a new version

The pending `@pnpm/prepare` 1100.0.22 is not on npm yet, so the rerun
of the v11.17.0 release publishes it with the files allowlist already
in place. `@pnpm/prepare-temp-dir` 1100.0.1 is already published with
correct tarball content (packed under the .gitignore shadow), so its
manifest-only change needs no republish. A changeset would only
schedule a patch release whose sole delta is the manifest field.
* ci: update pnpm/setup to the v12 standalone-executable revision

Since pnpm/setup#11 the action downloads the standalone pnpm v12
executable directly from the registry — no npm bootstrap, no system
Node.js dependency. Every workflow moves to the new revision except
update-latest.yml: its RELEASE_TOOL_PNPM_VERSION deliberately pins a
proven pnpm 11, which only the pre-v12 action revision can install, so
it keeps the old pin until that version moves to v12.

* ci: operate the Tag workflow with pnpm v12

RELEASE_TOOL_PNPM_VERSION moves to 12.0.0-alpha.19 and the pnpm/setup
pins to the v12 revision. The commands the workflow runs are rewritten
to forms both CLIs accept, since the Rust CLI does not (yet) expose
--registry, --allow-build on add, or a post-subcommand --dir:

- --registry becomes --config.registry (read by both stacks)
- the add build-script approval moves from `--allow-build=@pnpm/exe` to
  an allowBuilds entry in the scratch dir pnpm-workspace.yaml
- --dir moves ahead of the subcommand

Each rewritten command was verified against the 12.0.0-alpha.19 binary,
including the verify-upgrade sequence end to end (add of
`@pnpm/[email protected]` with the build approval, bin shim run) and the
config set/get/delete round trip for the auth token.

* revert: operate the Tag workflow with pnpm v11 again

Moving the operator to v12 required rewriting commands around three
CLI surfaces pacquet is missing (--registry, --allow-build on add,
post-subcommand --dir). The Rust CLI must gain those for parity instead
of the workflow papering over them — tracked in
#13242. The workflow keeps the
pre-v12 pnpm/setup pin and pnpm 11.13.1 until that lands.
…mmitish (#13240)

* fix(pnpm): stop stripping the manifest on disk when bundling deps

bundle-deps.ts deleted dependencies and devDependencies from
pnpm11/pnpm/package.json on disk, a workaround kept from when the
release-pinned pnpm did not honor the beforePacking hook
(#12955). The hook handles it now, and the on-disk strip is
what killed the v11.17.0 release: after build-artifacts ran it, the
payload-verification step tripped the verifyDepsBeforeRun gate, whose
spawned install synced node_modules to the stripped manifest and
removed the pnpm package deps that the artifact packages
prepublishOnly (verify-binary.mjs) needs during publish. The packed
manifest stays dependency-free via the hook, asserted by the release
workflow before the first publish.

* fix(release): drop target_commitish from the Rust draft release

Creating the Rust draft release fails with 403 "Resource not
accessible by integration": with immutable releases enabled, passing
target_commitish makes release creation fail for the workflow token
(the v12.0.0-alpha.19 draft failure, reproduced on rerun). The input
never did anything - GitHub ignores it when the tag exists, and the
assert step already pins the commit.
#13244)

The daily update-lockfile workflow failed: `pnpm update --latest` (pacquet
v12.0.0-alpha.19) errored with ERR_PNPM_PACKAGE_MANAGER_UPDATE_RESOLVE_LATEST
because it resolved the `latest` dist-tag of `@types/zkochan__table` — a
catalog dependency whose catalog entry is the alias `npm:@types/[email protected]` —
by its alias name, which 404s on the registry.

prepare_manifest's `--latest` branches resolved `latest` by the manifest key
(the install alias) and only consulted the catalogs to recover the range
operator. Now both branches first compute the effective specifier (the catalog
entry for a `catalog:` reference, the dependency's own specifier otherwise),
unwrap an `npm:` alias to the real package name for the dist-tag lookup, and
serialize the rewrite with the `npm:<real name>@` prefix preserved. The
`npm:<range>` shorthand and a self-named alias are written as a plain range,
matching the TypeScript resolver's unwrapPackageName/calcSpecifier pair, which
already handled aliases correctly (the TypeScript implementation needs no
change; it gains tests pinning both scenarios, which were uncovered).

`latest_pin` is folded into the new `effective_specifier` +
`resolve_latest_specifier` helpers; the pin-recovery behavior is unchanged.
…ch-timeout (#13245)

The v11.17.0 release run aborted with ERR_PNPM_PROVENANCE_SIGN after a
single dropped request to the sigstore timestamp authority, even though
the eight packages published before it signed fine.

The TypeScript CLI signs through sigstore-js, which runs every Fulcio /
TSA / Rekor request under make-fetch-happen with its default retry
policy (2 retries, factor 2, 1 s floor) and under the caller's timeout
option, which pnpm wires to fetch-timeout (default 60 s, sigstore-js
falls back to 5 s when unset). pacquet called sign_raw_statement exactly
once with no retry and no request timeout (the sigstore-rust clients
build bare reqwest clients), turning any single network flake into a
failed release and letting a stalled connection hang until the OS
dropped the socket.

Retry the whole signing exchange in the Host SignProvenance impl with
the same policy, and cap each attempt with fetch-timeout (5 s fallback),
converting an elapsed deadline into a retryable signing error. The
exchange is idempotent (fresh ephemeral key, certificate, timestamp,
and transparency-log entry per attempt), so re-running it is safe. Both
sit below the DI seam, matching where sigstore-js keeps them on the
TypeScript side, so the generate_provenance contract is unchanged apart
from the pass-through timeout parameter.
…o v12 (#13246)

The Tag release operator runs `pnpm add <pkg> --dir <d>
--allow-build=<pkg> --registry=<url>`; against pacquet each option
aborted the parse with "unexpected argument". Bring pacquet's surface
in line with the TypeScript CLI:

- `--registry <url>` is now a universal rc-option accepted on every
  command (a global clap arg layered onto the config the same way
  `--config.registry=<url>` is), not only the registry-scoped commands
  that spelled it out locally.
- `pnpm add` / `pnpm add -g` accept `--allow-build=<pkg>`, appending the
  named packages to `allowBuilds` — rejecting any the root explicitly
  disallows, persisting the rest to `pnpm-workspace.yaml`, and enabling
  them for the install. `pnpm install` still rejects it, matching the TS
  CLI (which errors on the unknown option there).
- `--dir` / `-C` is now `global = true`, so it parses on either side of
  the subcommand instead of only before it.

Refs #13242.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* ci(triage): time out hung Oz triage runs instead of waiting 6h

Triage runs occasionally wedge inside the `Triage with Oz agent` step
before the agent's first turn. The job then sits until GitHub's 6h
ceiling cancels it, so the issue is never labelled and never gets a
comment explaining why. Eight runs have hit this.

Successful triage runs complete in ~3 min (13 min worst case observed),
so a 20 min step timeout leaves ample headroom while turning a silent 6h
stall into a red run you can see and re-run.

Co-Authored-By: Oz <[email protected]>

* remove timeout comment block 1

* remove timeout comment block 2

---------

Co-authored-by: Oz <[email protected]>
Implement the `ci` (clean-install) command in Rust, matching the TypeScript
behavior from pnpm11/pnpm/src/cmd/cleanInstall.ts. The command runs a
synchronous `pnpm clean` step first, then delegates to the frozen-lockfile
install path.

The implementation adds a `CiArgs` struct that wraps existing `InstallArgs`
and `CleanArgs`, a `Ci` variant in `CliCommand` with visible aliases
matching TypeScript (`clean-install`, `ic`, `install-clean`), and dispatches
to a `ci()` function that runs clean eagerly before constructing the async
install future. The command is recursive by default in workspaces, forced
into the install-family for the "Done in ..." footer timing, and forces
`--frozen-lockfile` to `true` regardless of user flags.

All install flags are available (`--prod`, `--dev`, `--no-optional`, etc.).
A `clean` script in `package.json` overrides the built-in clean step, and
workspace root `clean` script override detection from subdirectories is
preserved, matching TypeScript's `clean.handler(opts)` call path.

A compilation fix is included: the `command_name()` function in
`switch_cli_version.rs` had an exhaustive match on `CliCommand` that was
missing the new `Ci` variant, causing `error[E0004]: non-exhaustive
patterns` which cascaded into all 9 failing Rust CI jobs (Clippy, Doc,
Dylint, Test on all platforms, Code Coverage, Integrated Benchmark, and
the Success gate).

The redundant `Box::pin(async move { install_future.await })` wrapper in
the ci dispatch is also removed, since `install()` already returns a
`CommandFuture`.

Behavioral parity with TypeScript:
- `pnpm clean` script in `package.json` overrides the built-in clean step
- Workspace root `clean` script override detection from subdirectories
- All install flags available (`--prod`, `--dev`, `--no-optional`, etc.)
- `--frozen-lockfile` forced to `true` regardless of user flags
- Recursive by default in workspaces
…--latest (#13257)

The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on
[email protected]. The source is node-gyp, declared directly in
pnpm11/pnpm/package.json and therefore missed by the catalog-oriented sweep
in #13253: `pnpm update --latest` bumps it 12.4.0 -> 13.0.1, and
node-gyp 13 -- along with its nopt 10 and which 7 dependencies -- requires
Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly
rejects against nodeVersion 22.13.0.

Replaying the job locally (lockfile deleted, `pnpm update --recursive
--latest`) confirms node-gyp was the last floor-blocked dependency: with it
held back, resolution completes with no engine errors and node-gyp stays at
12.4.0. The replay stops at the next, separate blocker instead --
ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier fix in
#13250.

The same replay also showed three catalog entries being bumped past pins
their comments say must hold: `@types/node` (22.x, matching the supported
Node.js floor), bole (5.x, so the published `@pnpm/logger`'s CJS bole shares
the output registry under Jest) and tempy (3.0.0, whose later versions
deadlock the bundled binary at startup). Only the engine-related pins were
enforced, so those three are added to the list as well.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
@pull pull Bot locked and limited conversation to collaborators Jul 23, 2026
@pull pull Bot added the ⤵️ pull label Jul 23, 2026
@pull
pull Bot merged commit f4ebdb9 into dwongdev:main Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants