-
Notifications
You must be signed in to change notification settings - Fork 598
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
[rush] Shouldn't version bumping update pnpm-lock.yaml
too?
#4977
Comments
Local versions aren't supposed to be in the pnpm-lock file. Can you share a repro repo? |
@iclanton In this repro repo
|
Enabling |
@dmichon-msft Thanks that fiix it but there's a preceding problem. I didn't change the workspace version but Rush did when it was publishing a prerelease. I also reproduced in the same repository and this was the step.
I wanted to publish prerelease from PR for some integration test with other external projects. But by doing so the workspace version changes. Should I do the prerelease publish process differently? |
Summary
Version bumping does not automatically update
pnpm-lock.yaml
. Therefore it needs to be updated manually. Otherwise, subsequent PRs fail atrush install
or suffers frompnpm-lock.yaml
conflict.Details
When I do
rush publish --publish --apply ...
, the following version bump commit updates all the versions in the package.json files of the target branch. But since it doesn't updatepnpm-lock.yaml
, any subsequent PRs that is stemming from the target branch will suffer from the inconsistency betweenpackage.json
andpnpm-lock.yaml
. For examplerush install
won't work so they will have to run rush update by themselves. Shouldn't version bumping updatepnpm-lock.yaml
too?Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: