Open davidschneider-cpi opened 2 years ago
Reproduction on GitHub: https://github.com/renovate-reproductions/17374, check the Dependency Dashboard to see the warning.
I'm experiencing the same issue, dependencies from pyproject.toml work fine until rollbackPrs
is disabled. When enabled I get the same Missing version has nothing to roll back to ...
error reported by @davidschneider-cpi
Any updates on this? Or any workarounds? It would be great to have rollbackPrs working with poetry.
I also encountered this issue and narrowed it down to the pep440
versioning.
Here is a reproduction repo that shows this: https://github.com/l-austenfeld/renovate-reproduction-17374
It has two fake dependencies (test1 and test2), both using the same custom datasource reading from the versions.json
file.
However one uses the pep440
versioning the other uses semver
. Renovate fails to lookup versions for the pep440
dependency, but not the semver
one.
Isn't that because "1.0.0" is a valid semver constraint while it's not a valid pep440 constraint? Pep440 needs ==1.0.0
It could be that I am getting some technicalities wrong.
I can say that versions like this work perfectly fine when rollback PRs are not enabled. I use a setup similar to the reproduction to manage python packages installed in a Dockerfile.
I am not proficient in JavaScript or Python, so I am afraid sharing my observations is all the help I can provide.
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
32.173.1
Please select which platform you are using if self-hosting.
gitlab.com
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Was this something which used to work for you, and then stopped?
It used to work, and then stopped
Describe the bug
With
rollbackPRs
enabled no PRs for updates get created. Instead it fails with an error message: Can't find version matching 5.2.3 for celery.The log claims the version is missing although this version of celery is still available: https://pypi.org/project/celery/5.2.3/
minimal reproduction repository: https://gitlab.com/dsch1/renovate-rollback-pr
Relevant debug logs
Logs
``` DEBUG: Using RE2 as regex engine DEBUG: Parsing configs DEBUG: Checking for config file in /usr/src/app/config.js DEBUG: No config file found on disk - skipping WARN: cli config dryRun property has been changed to full DEBUG: Converting GITHUB_COM_TOKEN into a global host rule DEBUG: File config "config": {} DEBUG: CLI config "config": { "repositories": ["dsch1/renovate-rollback-pr"], "dryRun": "full", "platform": "gitlab" } DEBUG: Env config "config": { "hostRules": [ {"hostType": "github", "matchHost": "github.com", "token": "***********"} ], "token": "***********" } DEBUG: Combined config "config": { "hostRules": [ {"hostType": "github", "matchHost": "github.com", "token": "***********"} ], "token": "***********", "repositories": ["dsch1/renovate-rollback-pr"], "dryRun": "full", "platform": "gitlab" } DEBUG: Found valid git version: 2.37.2 DEBUG: Using default GitLab endpoint: https://gitlab.com/api/v4/ DEBUG: GitLab version is: 15.4.0-pre DEBUG: Using platform gitAuthor: David SchneiderHave you created a minimal reproduction repository?
I have linked to a minimal reproduction repository in the bug description