Skip to content

Conversation

@LPegasus
Copy link
Contributor

@LPegasus LPegasus commented Feb 7, 2026

Summary

Fixes #5602: allPreferredVersions and allowedAlternativeVersions missing in subspace pnpmfileSettings.json.

Details

Following the same logic in https://github.com/microsoft/rushstack/blob/main/libraries/rush-lib/src/logic/pnpm/PnpmfileConfiguration.ts#L87-L134

How it was tested

  1. Added a unit test file.

  2. Rebuild rush-lib and test in my sample repo.

(subspace.contains(project) ? subspaceProjects : workspaceProjects)[packageName] = workspaceProjectInfo;
}

let allPreferredVersions: { [dependencyName: string]: string } = {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is SubspacePnpmfileConfiguration distinct from https://github.com/microsoft/rushstack/blob/main/libraries/rush-lib/src/logic/pnpm/PnpmfileConfiguration.ts? Looks like a lot of this is already in there. Can these two be largely deduplicated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

[rush] common-versions.json preferredVersions will cause rush install always fail when subspaces feature is enabled

2 participants