Skip to content

The --fix-lockfile flag removes catalog definitions on a filtered install #8639

@gluxon

Description

@gluxon

Copying a bug report from @sergioflores-j for tracking:

Text below is from @sergioflores-j:


Verify latest release

  • I verified that the issue exists in the latest pnpm release

Which area(s) of pnpm are affected? (leave empty if unsure)

Lockfile

Link to the code that reproduces this issue or a replay of the bug

https://github.com/sergioflores-j/pnpm-bugs-repro/tree/main?tab=readme-ov-file#2-pnpm-install---fix-lockfile-removes-the-catalog-definition

Reproduction steps

  1. Set in .npmrc recursive-install=false
  2. Run pnpm i --fix-lockfile from the root of the repo

Describe the Bug

Catalog definition gets removed from lockfile.

catalog-removed-bug

Expected Behavior

Catalog definition stays in the lockfile.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions