Renovate updates major updates as patch updates and merges them automatically #36433
Replies: 2 comments 5 replies
-
|
Renovate bases it's updateType on the locked version. Ie the "actual" change. It seems that the problem here is incorrect identification of the lockedVersion during extract phase |
Beta Was this translation helpful? Give feedback.
-
|
Sorry @rarkins, I edited the question after you already answered. I was working under the impression that Renovate updates direct dependencies, so that it updates |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub - 40.49.1
Please tell us more about your question or problem
Renovate mislabels update types causing auto merge of major updates.
In this screenshot Renovate labels this as patch dependency but actually it seems to be a major version.
This is the package.json:

And this the lock file change:

The logs show that Renovate declares this wrongfully as patch already (dependending on how you look at it. if the lockfile is already at 2.0.1 then patch is correct).
I think the reason it is labeled as patch is that the lock file contains many other
@opentelemetry/sdk-trace-baseentries in other modules or transitive dependencies.E.g. an excerpt from the package-lock.json:
and this one
Here it is already at
2.0.1, it seems Renovate gets confused if there are multiple of the specific packages in the lock file.In the dashboard I see that it is also

1.30.1:I have three packages in the lock file:
What is the expected behavior in this specific case?
I would expect Renovate either to only update one package, e.g.
1.30.1to2.0.1or2.0.1to2.0.1.Or if it updates direct and transitive dependencies, then it should label it as major.
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions