Description
Summary
The RushJS documentation for rush install states that I can run with --only
flag which will select only the one specified project and install only the dependencies for that project. However that doesn't seem the case and all monorepo's projects' dependencies are still getting installed.
Repro steps
To reproduce, run rush purge
first, then rush install --only .
in any folder, and see what gets installed. You will see that rush installs all monorepo dependencies, and not only the specified project.
It takes a significant amount of time to install and I can see a line line this in logs Scope: 8 of 219 workspace projects
and Progress: resolved 3620, reused 3550, downloaded 0, added 3076
in logs.
I tested with rush install --to .
as well, and I see this log line Scope: 8 of 219 workspace projects
. 8 is the correct number of selected projects as oppose to Scope: all 219 workspace projects
generated for rush install
However, watching the installation progress, it always results in Progress: resolved 3620, reused 0, downloaded 3550, added 3076 done
--> same amount of packages downloaded and added for any of the flags (or no flags) specified
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/rush globally installed version? |
5.112.2 |
rushVersion from rush.json? |
5.112.2 |
useWorkspaces from rush.json? |
true |
Operating system? | MacOS |
Would you consider contributing a PR? | No |
Node.js version (node -v )? |
v20.10.0 |
Metadata
Metadata
Assignees
Type
Projects
Status