Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vhuseinova-msft opened this issue Jun 13, 2024 · 2 comments

Comments

@vhuseinova-msft
Copy link

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

  • open a monorepo with variants support
  • install the latest version of rush
  • try to run rush install --variant <variant-name>

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Investigation
Development

No branches or pull requests

2 participants