Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm update will replace workspace:* dependencies and similar syntax with exact versions #5317

Closed
segevfiner opened this issue Sep 7, 2022 · 4 comments · Fixed by #5764
Closed
Labels
area: monorepo Everything related to the pnpm workspace feature type: bug
Milestone

Comments

@segevfiner
Copy link

pnpm version: 7.11.0

Code to reproduce the issue:

  1. Create a pnpm workspace with one package that depends on another using an coarse syntax like workspace:*.
  2. Run pnpm update

Expected behavior:

The workspace:* is kept intact. By using it I mean to just use the current version from the monorepo but hardcode the version on publish. I don't want to hardcode the version in the Git repo in all packages that depend on it.

Actual behavior:

It get's replaced with the current version of the depended on package from the monorepo, e.g. workspace:1.0.1.

Additional information:

  • node -v prints: v16.17.0
  • Windows, macOS, or Linux?: macOS
@ntnyq
Copy link

ntnyq commented Sep 8, 2022

@shirotech
Copy link
Contributor

Seems many people have reported similar issue, @zkochan would you have some time to have a look? Would be greatly appreciated, thank you.

@ntnyq
Copy link

ntnyq commented Dec 2, 2022

For now, I use taze to keep my deps fresh.
Maybe you can have a try.

@zkochan
Copy link
Member

zkochan commented Dec 3, 2022

It is a bug.

As a workaround, use pnpm update -i or pnpm update --interactive

@zkochan zkochan added the area: monorepo Everything related to the pnpm workspace feature label Dec 3, 2022
zkochan pushed a commit that referenced this issue Dec 9, 2022
@zkochan zkochan modified the milestones: v7.19, v7.18 Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: monorepo Everything related to the pnpm workspace feature type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants