Repository navigation
[pull] main from pnpm:main - #439
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )