You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package G has dependency on an external package E.
External package E has dependency on package F.
E, G, F are all published in registry
In that monorepo, we set link-workspace-packages = deep
This causes pnpm install to make E depends on internal version of F.
However if subsequently we clean the repo (remove all the node_modules) and we run pnpm install --filter G...", the dependencies of local version of F is not installed.
kenrick95
changed the title
When using link-workspace-packages = deep, partial filter install does not fully install all dependencies
When using link-workspace-packages = deep, partially filtered installation does not fully install all dependencies
Jul 14, 2022
The unit test of @pnpm/headless is passing because we are passing the all workspace projects to the headlessInstall function.
As I understand, when @pnpm/main calls @pnpm/core, it is passing the full workspace projects info at opts.allProjects, however when calling @pnpm/headlesss' headlessInstall, it is no longer the full workspace projects, but only the filtered ones
pnpm version: 7.5.1
Also used 6.32.25 and issue exist too
Code to reproduce the issue:
Scenario:
In a monorepo, there are two packages: G & F
In that monorepo, we set
link-workspace-packages = deep
This causes
pnpm install
to make E depends on internal version of F.However if subsequently we clean the repo (remove all the node_modules) and we run
pnpm install --filter G..."
, the dependencies of local version of F is not installed.Repro here: https://github.com/kenrick95/pnpm-testing-repro-deep-install-issue
Expected behavior:
In that scenario, F's dependencies (direct & indirect too) are installed
Actual behavior:
F's dependencies are not installed
Additional information:
node -v
prints: 14.19.0The text was updated successfully, but these errors were encountered: