microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.74k stars 587 forks source link

[rush] `rush install --variant <variant-name>` doesn't work for the latest rush versions #4784

Open vhuseinova-msft opened 3 weeks ago

vhuseinova-msft commented 3 weeks ago

Summary

The latest versions of rush (after 5.112.2) doesn't support variants anymore for rush install command even though an error (when running rush update) states that variants won't be supported in the next major release. Screenshot 2024-06-13 at 8 55 08 AM

Screenshot 2024-06-13 at 8 48 26 AM

Repro steps

Expected result: the variants ae supported until rush version 6

Actual result: the variants aren't supported anymore

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.127.0
rushVersion from rush.json? 5.128.0
useWorkspaces from rush.json? not specified
Operating system? Mac
Would you consider contributing a PR? No
Node.js version (node -v)? v20.14.0
iclanton commented 2 weeks ago

Yeah the variants feature was removed in favor of subspaces. That error message is saying that Rush won't give a hard error if the "variants" field in rush.json is present until Rush 6, but the feature has been removed.

@g-chao - can you provide guidance on how @vhuseinova-msft can use subspaces?

vhuseinova-msft commented 2 weeks ago

Thank you for sharing the details! Just in case, I've also started a conversation with some questions about subspaces here