Description
Summary
I am trying to enable subspace in my repo by flowing the doc. Then discovered a problem: After enabling the subspace feature, the preferredVersions in common-version will not take effect.
Details
when subspace is disable, rush will create a file named as pnpmfileSettings.json
including preferredVersions.
rushstack/libraries/rush-lib/src/logic/pnpm/IPnpmfile.ts
Lines 13 to 22 in e64a1e5
Then, pnpmfile.cjs read preferredVersions from pnpmfileSettings.json
and it can set the preferred versions on the dependency map
rushstack/libraries/rush-lib/src/logic/pnpm/PnpmfileShim.ts
Lines 82 to 103 in e64a1e5
However, when subspace is enable, pnpmfileSettings.json
no longer contains preferredVersion information
rushstack/libraries/rush-lib/src/logic/pnpm/IPnpmfile.ts
Lines 34 to 39 in e64a1e5
rush create a file named as global-pnpmfile.cjs
and it doesn't seem to implement any logic related to preferredVersions.
Subspace does not support preferredVersions, does it?
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/rush globally installed version? |
5.147.2 |
rushVersion from rush.json? |
5.147.2 |
useWorkspaces from rush.json? |
Yes |
Operating system? | Mac |
Would you consider contributing a PR? | Yes |
Node.js version (node -v )? |
v20.16.0 |
Metadata
Metadata
Assignees
Labels
Type
Projects
Status