close
Skip to content

[rush] "rush update" error when adding new project to rush.json #1418

@ScottHysom

Description

@ScottHysom

Is this a feature or a bug?

  • Feature
  • Bug

Please describe the actual behavior.
With rush version 5.10.3 and pnpm version 3.6.0, users can no longer add a new project to their rush.json and run rush update. Instead, rush update results in this error:

ERROR: Cannot get dependency key for temp project: @rush-temp/new-project

A simple repro can be found at https://github.com/ScottHysom/rush-issue-add-project. See the README.md for simple repro steps.

To work around this issue, a user must manually change the pnpm-lock.yaml and add the following line under the top dependencies key:

'@rush-temp/new-project': 'file:path-to-project/new-project.tgz'

What is the expected behavior?
rush update succeeds in updating the pnpm lock file without manual intervention.

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: rush
  • Tool Version: 5.10.3
  • pnpm Version: 3.6.0
  • Node Version: 10.14.1
    • Is this a LTS version? Yes
    • Have you tested on a LTS version? Yes
  • OS: Windows 10 version 1903

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions