Updating git dependencies in poetry does not work when dependent repositories are in github enterprise #26830
Replies: 4 comments 6 replies
-
seems like a bug |
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. To get started, please read our guide on creating a minimal reproduction. We may close the discussion if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
@viceice @rarkins I have created a minimal reproduction repository here : https://github.com/jitheshdb/PoetryGHEDependencySample The details are given in its readme file. Thank you |
Beta Was this translation helpful? Give feedback.
-
Converted to issue: #27660 |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
37.140.6
If you're self-hosting Renovate, select which platform you are using.
GitHub Enterprise Server
What is your question?
From the release notes, I have found the Renovate started supporting git dependencies in poetry. There are two ways in which we configure git dependencies in poetry
my-tools = {git = "https://github-partner.xyz.com/jithesh/my-tools", rev = "8b8f40d8c4d89e04fc609d87d4ae60600b5f5a2d"}
my-tools = {git = "https://github-partner.xyz.com/jithesh/my-tools", tag="1.5.0"}
I have observed that, renovate can update the dependency in the option 1 above. Means, it can update when I use 'rev' in the configuration.
But, when 'tag' is used as in the second option, Renovate skips this dependency with following message in the log
I have looked at the Renovate source code and in the poetry manager code, I found that it checks if the repo url contains 'github.com', only when 'tag' is handled. Since github enterprise repo url does not contain 'github.com', it skips the dependency. On the other hand, when 'rev' is used, the repo url is not checked and hence it works.
Is this a bug or intentionally did it that way?
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions