Skip to content

[pull] main from pnpm:main - #439

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

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

Conversation

@pull

@pull pull Bot commented Jul 24, 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 3 commits July 24, 2026 01:06
Checking GitHub Actions for updates spawns `git ls-remote` against every
repository referenced by the workflow files. That reaches the network in a
way pnpm cannot validate up front, and it fails wherever GitHub is not
reachable the way pnpm assumes: a GitHub Enterprise Server hosting the
actions (#13220), a container with a custom certificate authority
(#13254), an offline or proxied CI network.

Both reports came within days of the feature shipping, and neither is
fixable from pnpm's side, so the check no longer runs unless it is asked
for. `pnpm outdated` and `pnpm update` — interactive or not, recursive or
not — now read workflow files only with `--include-github-actions` or with
`update.githubActions` set to `true`.

`update.githubActions: false` keeps working; it is now equivalent to
leaving the setting unset, so anyone who added it to silence the warnings
needs no change.

The opt-in rule lives in one place per stack (`shouldCheckGitHubActions`
and `github_actions::opted_in`) and is shared by every call site, so the
commands cannot drift apart again. `pnpm outdated` gained the
`--include-github-actions` flag it was missing.

Closes #13254
…rites (#13250)

Replaying the update-lockfile job's update --recursive --latest showed
prepare_manifest treating the virtual `node: runtime:26.5.0` dependency as
a registry dep: it resolved the unrelated npm package `node` and rewrote
the manifest to a plain version whose install script then failed the
strict ignored-builds check.

The cause was that prepare_manifest asked "what is the latest version of
this name" outside the resolver chain, against a hand-maintained list of
protocols the registry does not own (workspace:, link:, file:). Every
protocol the chain grew had to be repeated there, and the ones never added
were silently mis-resolved: git/github: URLs and remote tarballs were all
looked up under their alias name on the npm registry and rewritten to a
plain version.

Ask the resolvers instead. prepare_manifest now resolves each direct
dependency through a DefaultResolver chain with UpdateBehavior::Latest and
takes the normalized_bare_specifier the claiming resolver reports, so each
protocol's own resolver decides what its manifest entry becomes: the npm
picker takes the higher of the declared range and the `latest` tag, the
runtime resolvers re-resolve within the spec the manifest already declares
(as in the TypeScript CLI, which needs no code change and gains a test
pinning the scenario, as does pacquet), and a dependency no resolver in the
chain claims keeps its entry. The chain deliberately omits the git, tarball
and local-path resolvers: they have no notion of a latest, and asking them
would clone or download during manifest preparation only to be told the
specifier stands.

That required implementing ResolveOptions::calc_specifier, which pacquet
declared but never read, so the npm resolver reports a manifest-ready
specifier for the version it picked. `npm_alias_target` moves out of the
update command into the new pacquet-resolving-npm-resolver::calc_specifier
alongside it, since the npm-alias round-trip is the npm resolver's business.
jsr: and named-registry entries are claimed and resolved but report no
specifier yet, so they keep their declared form.

A resolver that reports back what the manifest already says no longer
counts as a rewrite. Recording it marked the manifest dirty and persisted
it, which for a `runtime:` dependency rewrote the entry into
devEngines.runtime — a change the user never asked for.

`workspace:` keeps an explicit skip: preserveWorkspaceProtocol is always on
under --latest, and the npm resolver answers those only against the
install's workspace-package map, which manifest preparation has not built.
Write PNPM_HOME to the GitHub Actions environment file.

Add the setup bin directory to the workflow path file.

Later workflow steps can use global pnpm commands.

Keep TypeScript setup and pacquet setup behavior aligned.

Refs #9191.
@pull pull Bot locked and limited conversation to collaborators Jul 24, 2026
@pull pull Bot added the ⤵️ pull label Jul 24, 2026
@pull
pull Bot merged commit 4737386 into dwongdev:main Jul 24, 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.

2 participants