Repository navigation
Replies: 1 comment
|
The fact that the first installation succeeds but a later resolution fails with ERR_PNPM_MISSING_TARBALL_INTEGRITY points toward how the tarball is being cached rather than the URL itself being unreachable. For a remote tarball dependency, Iβd compare the package manager state between the first successful install and the second resolution: pnpm store path Iβd also check whether the generated lockfile contains the tarball URL and an integrity value that remains valid for subsequent resolutions. If the GitHub tarball is mutable or points at a branch/ref whose archive contents can change, that can make reproducible integrity verification problematic. A fixed commit/archive URL is safer for dependency reproducibility than a moving branch reference. If the ecosystem documentation currently recommends a GitHub tarball URL, Iβd consider changing that recommendation to a release artifact or immutable commit reference if possible. A regression test should install the plugin twice using a fresh pnpm store and verify that the second resolution succeeds without requiring manual cache deletion. If this clears up the issue, please consider marking the answer as accepted so others who run into the same problem can find the solution more easily. |
Uh oh!
There was an error while loading. Please reload this page.
Installing a plugin from a tarball URL fails on the second resolve:
ERR_PNPM_MISSING_TARBALL_INTEGRITYSummary
A plugin installed from a GitHub tarball URL β the distribution form the ecosystem's own READMEs document (e.g.
dsh-at-file) β installs fine the first time and then fails on every later resolve that reuses the same pnpm store, with an error that blames lockfile tampering:The real trigger is the bundled pnpm 11.7.0 (
Contents/Resources/runtime/pnpm), not the profile, the lockfile, or the desktop plugin manager: the same store and URL succeed under pnpm 11.20.0. Both pieces of advice in that message are wrong for this state β the lockfile is neither corrupt nor fixable by deleting it.Reproduction
Deterministic, two commands, no DSH profile needed (uses the app's own pnpm binary):
Result:
In a DSH profile the same thing happens one level up: the first profile to install the tarball succeeds, and the next profile (or a re-install after
remove) fails β which is exactly how this was met. On this machine:headlessinstalled the tarball URL successfully; thedesktopprofile then failed, and no amount ofremove+addor deleting the profile lockfile helped.Current behavior
ERR_PNPM_MISSING_TARBALL_INTEGRITY,reused 1 downloaded 0--force--forcedoes not bypass)github:owner/repoThe lockfile written by a failed run is itself evidence β the resolution is recorded without integrity, which is what the next run then rejects:
Against a healthy store the same entry is written as:
Expected behavior
Installing a plugin from a tarball URL works on every machine and every store, at least as reliably as the git spec that resolves the same content. If a resolution genuinely cannot be verified, the error should name the actual state (a store-cached tarball resolution without integrity), not suggest the lockfile was tampered with.
Environment
@deepseek-ai/dsh-desktop-runtime0.2.0-rc.2Contents/Resources/runtime/pnpm/bin/pnpm.mjs,runtime/versions.json)~/Library/pnpm/store/v11headless(succeeded first),desktop(failed on reuse)Root cause
pnpm 11.7.0 records a store-side resolution for a remote tarball without the integrity field. A later resolution of the same URL reuses that entry (
reused 1 downloaded 0), copies it into the lockfile, and then its own supply-chain verifier refuses the integrity-less entry. Because the entry is in the store, deleting the profile'spnpm-lock.yamlchanges nothing, and--forcedoes not drop it either. pnpm 11.20.0 against the identical store re-downloads and records integrity, so this looks version-specific.Impact
dsh-at-file's README installs aβ¦/main.tar.gzURL, and the DSH docs describedsh plugin --profile <name> add <pnpm args>with git/URL specs in mind. Anyone shipping a plugin as a tarball URL will see their users hit this on the second machine (or the second profile) that shares a store.--frozen-lockfile, and both leads are dead ends (CI=1,--no-frozen-lockfile, deleting the lockfile,--forceβ all tested).Workarounds
--store-dir, or prune the store) β correct but not something a user can be asked to do.integrityfield in the profile's lockfile. This is what unblocked thedesktopprofile here; it works, but no user should need to know it.Suggested fix
ERR_PNPM_MISSING_TARBALL_INTEGRITYon a fresh store-cached resolution is not lockfile corruption.Note on a hypothesis that was tested and ruled out
An earlier suspicion was the desktop plugin manager's snapshot/repair path (it restores saved profile files and re-runs
install --frozen-lockfileon warnings, so a frozen re-install looked like the culprit). The isolated runs above use the bundled pnpm without the manager and fail identically, so the manager only makes the message worse, not the failure. Worth stating so the trail does not get followed twice.All reactions