Skip to content

[rush] Unable to use local version of rush in rushstack repo #5197

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

Open
dmichon-msft opened this issue Apr 16, 2025 · 2 comments
Open

[rush] Unable to use local version of rush in rushstack repo #5197

dmichon-msft opened this issue Apr 16, 2025 · 2 comments

Comments

@dmichon-msft
Copy link
Contributor

Summary

Repro steps

rush install
rush build -t rush
node ./apps/rush/lib/start-dev.js build --to module-minifier

Expected result:
Successful build

Actual result:
==[ @rushstack/eslint-patch (build) ]=============================[ 2 of 25 ]==
pnpm-sync: The workspace was installed using an incompatible version of pnpm-sync.
pnpm-sync: Please run "rush install" or "rush update" again.
pnpm-sync: Expecting .pnpm-sync.json version 0.3.0, but found version 0.2.9
pnpm-sync: Affected folder: /workspaces/rushstack-2/libraries/tree-pattern/node_modules/.pnpm-sync.json
pnpm-sync: The workspace was installed using an incompatible version of pnpm-sync.
pnpm-sync: Please run "rush install" or "rush update" again.
pnpm-sync: Expecting .pnpm-sync.json version 0.3.0, but found version 0.2.9
pnpm-sync: Affected folder: /workspaces/rushstack-2/eslint/eslint-patch/node_modules/.pnpm-sync.json
"@rushstack/eslint-patch (build)" failed to build.

Details

It is necessary to be able to use the locally built copy of Rush against the current repository, since this is the normal development testing flow

Standard questions

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

Question Answer
@microsoft/rush globally installed version? 5.151.0
rushVersion from rush.json? 5.151.0
useWorkspaces from rush.json? true
Operating system? Linux
Would you consider contributing a PR? Yes
Node.js version (node -v)? 22.14.0
@iclanton
Copy link
Member

@octogonz - can someone from your team take a look at this?

@iclanton iclanton moved this from Needs triage to Needs Investigation in Bug Triage Apr 21, 2025
@octogonz
Copy link
Collaborator

@dmichon-msft when we discussed this, we thought that upgrading the decoupled local dependencies in the Rush Stack repo would eliminate this error.

Did that work?

(We can look at ways to make pnpm-sync backwards compatible, but the underlying issue is that the .pnpm-sync.json is different between the two version of Rush you are invoking.)

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

3 participants