Purposefully downgrading dependencies #31415
-
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 problemDue to a dependency upgrade causing unforeseen silent errors, I have been forced to try and downgrade this dependency across all my repos. I am not certain this is a bug but I have been unable to find any information about downgrades being supported or not. We are using npm manager, the dependency is {
"description": "Downgrade TypeScript to version 5.5.4",
"matchPackageNames": [
"typescript"
],
"allowedVersions": "5.5.4",
"rangeStrategy": "pin"
} Other pertinent parts of our config as as follows. "extends": [
"config:recommended",
":rebaseStalePrs",
":timezone(Europe/London)"
],
"enabledManagers": [
"npm",
"dockerfile",
"docker-compose",
"github-actions",
"cargo"
],
"npm": {
"labels": [
"dependencies",
"npm"
],
"extends": [
"npm:unpublishSafe",
"helpers:disableTypesNodeMajor"
],
"rangeStrategy": "bump",
"bumpVersion": "patch",
"automergeType": "pr",
"updateLockFiles": true,
"major": {
"automerge": false
},
packageRules: [... Expected behaviourRenovate creates a PR downgrading the dependency to the version specified e.g. Actual BehaviourRenovate changes the version in Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi there, A maintainer decided this is not a bug, and behaving as designed. The maintainer will explain why this behavior is correct. To avoid confusing future readers, we will close this Discussion. We want Bug-type Discussions to be about things that we rate as bugs. For more details, please read our development docs about bug handling. If this bug report makes you think of an idea for a new feature, or how to improve a current feature, feel free to create a new Suggest an Idea Discussion. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
Downgrades are not supported in this manner, so this behavior is as expected