-
Notifications
You must be signed in to change notification settings - Fork 680
Description
Summary
After upgrading Rush-related dependencies in our monorepo (latest commit is an "Upgrade Rush-related dependencies" change), rush init-deploy --project=<target-project> started failing consistently.
We are trying to generate deploy config for a single project, but Rush fails because it cannot find rush-init-deploy/scenario-template.json under @microsoft/rush-lib.
Repro steps
-
In a Rush monorepo, update Rush-related dependencies (in our case this happened in a recent dependency-upgrade commit).
-
Ensure the repo is installed (
rush install). -
Run:
rush init-deploy --project=<target-project>
-
Observe the error below.
Expected result: Rush initializes deploy artifacts for the selected project.
Actual result: Rush exits with ENOENT for scenario-template.json:
ERROR: File does not exist:
<workspace-root>/common/temp/install-run/@microsoft+rush@5.170.1/node_modules/@microsoft/rush-lib/assets/rush-init-deploy/scenario-template.json
File does not exist:
<workspace-root>/common/temp/install-run/@microsoft+rush@5.170.1/node_modules/@microsoft/rush-lib/assets/rush-init-deploy/scenario-template.json
ENOENT: no such file or directory, open
'<workspace-root>/common/temp/install-run/@microsoft+rush@5.170.1/node_modules/@microsoft/rush-lib/assets/rush-init-deploy/scenario-template.json'
Details
It looks like the file expected by rush init-deploy is missing from the installed @microsoft/rush-lib package path for Rush 5.170.1 in our environment.
Possible causes:
- packaging regression for
@microsoft/rush-libassets, - changed asset path not reflected in
init-deploy, - corrupted local Rush install cache.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/rush globally installed version? |
5.170.1 |
rushVersion from rush.json? |
5.170.1 |
pnpmVersion, npmVersion, or yarnVersion from rush.json? |
pnpm@10.29.2 |
(if pnpm) useWorkspaces from pnpm-config.json? |
true |
| Operating system? | macOS |
| Would you consider contributing a PR? | Yes |
Node.js version (node -v)? |
v22.22.0 |
Metadata
Metadata
Assignees
Labels
Type
Projects
Status