Repository navigation
[pull] main from pnpm:main - #505
Merged
Merged
Conversation
… exact runtime pins (#13901) The first node shim run in a project pinning a runtime through devEngines.runtime took ~650ms even when the exact version was already in the store. ~530ms of that was network, re-downloading immutable and already-verified release metadata: a cold index.json fetch during pre-save specifier normalization, a second index.json fetch in the resolver, the SHASUMS256.txt + signature fetch, and a cold connection to unofficial-builds.nodejs.org for the musl SHASUMS. Two changes, mirrored in both stacks: - Exact stable-release specifiers (runtime:22.23.2) skip the release index: the specifier is its own resolution and existence is proven by the asset-list fetch. When that fetch fails, the index is consulted after the fact so a nonexistent version still raises ERR_PNPM_NODEJS_VERSION_NOT_FOUND. The pacquet-only pre-save normalization takes the same shortcut. - Per-version SHASUMS256.txt bodies are cached under <cacheDir>/v11/runtime-shasums/<host>/<url path>. The URLs are version-pinned and immutable; signed bodies are cached only after their OpenPGP signature verified, and a cached body is trusted like the registry metadata mirror (no re-verification on read). Both stacks share the layout. With a warm store, the first shim run drops from ~650ms to ~100ms — the remainder is materializing the runtime tree into the global virtual store — and no longer needs the network at all. Closes #13899.
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 : )