Skip to content

fix: skip cataloged dependencies when running pnpm update --latest#8286

Merged
zkochan merged 2 commits intomainfrom
gluxon/catalog-update-latest-ignore
Jul 7, 2024
Merged

fix: skip cataloged dependencies when running pnpm update --latest#8286
zkochan merged 2 commits intomainfrom
gluxon/catalog-update-latest-ignore

Conversation

@gluxon
Copy link
Member

@gluxon gluxon commented Jul 7, 2024

Problem

Running pnpm update --latest currently causes a consistency bug. Since pnpm update doesn't know how to update pnpm-workspace.yaml yet,

  • The old specifier (ex: ^1.0.0) of a cataloged dependency would still be present in pnpm-workspace.yaml,
  • But the latest version (ex: 3.1.0) would be present in pnpm-workspace.yaml and installed on disk.

Changes

Let's skip over catalog: protocol dependencies until pnpm update is refactored to handle pnpm-workspace.yaml edits in the future.

@gluxon gluxon force-pushed the gluxon/catalog-update-latest-ignore branch 3 times, most recently from df36feb to 0ebae6a Compare July 7, 2024 11:43
Base automatically changed from gluxon/catalog-update-ignore to main July 7, 2024 12:27
@zkochan zkochan marked this pull request as ready for review July 7, 2024 12:40
@gluxon gluxon force-pushed the gluxon/catalog-update-latest-ignore branch from 4627d37 to 0ebae6a Compare July 7, 2024 12:53
@gluxon gluxon force-pushed the gluxon/catalog-update-latest-ignore branch from 0ebae6a to e5003d4 Compare July 7, 2024 12:53
@zkochan zkochan merged commit f30590b into main Jul 7, 2024
@zkochan zkochan deleted the gluxon/catalog-update-latest-ignore branch July 7, 2024 13:53
@gluxon gluxon mentioned this pull request Jul 7, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants