8000 Stale resolved version when using pnpm catalogs and filtered install · Issue #8638 · pnpm/pnpm · GitHub
[go: up one dir, main page]

Skip to content
Stale resolved version when using pnpm catalogs and filtered install #8638
@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)

Dependencies resolver, CLI, Lockfile

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

https://github.com/sergioflores-j/pnpm-bugs-repro?tab=readme-ov-file#1-specifier-changes-but-resolved-version-is-still-the-same

Reproduction steps

  1. Set in .npmrc recursive-install=false
  2. Change a version in pnpm-workspace.yaml (e.g. typescript)
  3. Run either pnpm i --lockfile-only or pnpm i from the root of the repository

Describe the Bug

Only the specifier of the catalog dependency gets changed but the resolved version is still the old one.

specifier-bug

Secondary behavior

If running pnpm i from a package (e.g. inside the directory packages/package-a). Only that packages starts resolving the new version and the catalog still refers to the old one.

specifier-when-from-package

Expected Behavior

That the resolved version for all packages gets updated. Like when using recursive-install=true instead.

specifier-bug-expected

IMHO as the catalog is a centralized configuration, all packages should be updated independently of the recursive-install setting.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0