Is Renovate using Poetry >=1.8.0 consistently? #28688
Replies: 5 comments 27 replies
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
In theory Renovate should use the latest version of tools unless it thinks the project is configured otherwise |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
So, I have investigated this a bit and I still believe that interpreting the version from the lockfile is not a good choice, for the following reasons:
In my opinion we should go forward like this:
@rarkins had the concern that using Poetry latest might cause a lot of lockfile churn due to the version in the lockfile header. As mentioned above that won't happen because the version is only updated when the dependency tree changes. |
Beta Was this translation helpful? Give feedback.
-
@rarkins @HonkingGoose I have a related issue – this time to do with choosing a Python version. (I'll start with a thread in this discussion, but I'm happy to create a new one if you prefer me to.) In our project we pin Python version down to a patch, so our [tool.poetry.dependencies]
...
python = "3.12.3"
... It may not be the usual way of doing things, but we do it mainly out of convenience. It keeps the Renovate configuration simple as we pin all other dependencies. We also have However, when a new patch version of Python comes out, Renovate will immediate use it, leading to problems updating artifacts: Wdyt about running analogous version inference logic for Python, as is currently done for Poetry? (See #28688 (reply in thread) ) I know that @fgreinacher is explicitly suggesting to drop that Poetry behaviour in #28688 (comment), so I'm happy to work on updating our |
Beta Was this translation helpful? Give feedback.
-
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're seeing intermittent errors like this:
This
package-mode
property was added in python-poetry/poetry#8650 and released in Poetry 1.8.0: https://github.com/python-poetry/poetry/releases/tag/1.8.0It seems like Renovate is sometimes running with an old version of Poetry and sometimes with a new one.
Shall we stop setting this property for now, or are you able to ensure that you're using Poetry >=1.8.0 when creating PRs?
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions