pnpm: lockfile error with patched dependencies #28686
Unanswered
haines
asked this question in
Request Help
Replies: 2 comments 1 reply
-
Is your preferred solution that PRs are raised immediately with errors or is that a workaround? Is there any realistic way for Renovate to successfully update such dependencies without errors? |
Beta Was this translation helpful? Give feedback.
1 reply
-
we're doing something similar on our base image 🙃 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like help with?
I think I found a bug
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
We have created some patches using
pnpm patch
, so our package.json has apnpm.patchedDependencies
field.This means that Renovate can't update the lockfile when it tries to bump a patched dependency.
pnpm install
fails withERR_PNPM_PATCH_NOT_APPLIED
unless I also setpnpm.allowNonAppliedPatches
(which I don't want to do because I want to be aware that I need to either update or remove the patch when the dependency is bumped).Somewhat frustratingly, Renovate won't raise a PR with the lock file errors immediately, because of this logic that waits for 2 hours after the most recent release to be included in the PR.
I would like Renovate to immediately raise a PR with lock file errors in this case, because waiting for 2 hours won't resolve the issue. This is particularly painful because we group all our non-major dependency updates together, which means that during the week it can take a while before 2 hours has elapsed since any of them have been released.
Logs (if relevant)
This log shows the error and that Renovate is deciding whether to raise the PR based on the release timestamp:
Logs
Beta Was this translation helpful? Give feedback.
All reactions