ReviewOS

pantry-pm/pantry

npm installs skip platform-specific optionalDependencies (esbuild, sqld, rollup, sharp, biome, turbo...)

#240
Closed chris opened this 8 days ago ·
8 days ago

pantry's npm installer only read dependencies and peerDependencies, so sqld@0.24.1-pre.42 installed without @sqld/darwin-arm64 and no sqld binary existed; the same mechanism carries esbuild (@esbuild/), rollup (@rollup/rollup-), sharp (@img/sharp-), lightningcss, @biomejs/cli-, turbo. Expected: install the optionalDependencies whose os/cpu/libc match the host, skip the rest, tolerate optional failures, record every platform's build in pantry.lock the way bun.lock does, and link their bins.

Found alongside: an exact prerelease (0.24.1-pre.42) resolved to the first 0.24.1-pre.N the registry listed, and any install with a pantry.lock present answered npm resolution from the lock with no dependencies, so only top-level npm packages were installed.

Sign in to comment on this issue.