Skip to content

[rush] init-deploy --project=<target-project> fails with missing scenario-template.json after Rush dependency upgrade #5705

@koen-dev

Description

@koen-dev

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

  1. In a Rush monorepo, update Rush-related dependencies (in our case this happened in a recent dependency-upgrade commit).

  2. Ensure the repo is installed (rush install).

  3. Run:

    rush init-deploy --project=<target-project>
  4. 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-lib assets,
  • 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions