git-submodules: renovate updates to branch if it matches semver pattern #31420
Replies: 4 comments 5 replies
-
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. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
@nejch please see the template repo for an example README structure we ask for in reproductions. No need to recreate it but please create a readme using those headings |
Beta Was this translation helpful? Give feedback.
-
Also a little tip for clarity. It's unclear from the description here either what the bug is. You make two statements:
Do both statements above reflect Renovate's current behavior? But the second statement is what you consider to be buggy behavior? This is why we ask for "I expect X, but what I see is Y" so that it's easier to understand |
Beta Was this translation helpful? Give feedback.
-
I'm not sure there's a solution here. Even less sure that it's a bug. Git submodules natively does not have a mechanism for tracking tags - only branches. Because we know that some users would like to track tags, Renovate supports that doing the "branch =" setting, even though technically it's an incorrect of this field for git submodules. So if you have something like "branch = v1.0.0" and that's a tag, there's no annotation here saying "hey Renovate, this is actually a tag, not a branch". It should work with either approach. Next, I don't think it's obvious that every Renovate user would want to use only tags. Having branches and tags named similar (e.g. semver) sounds like an undesirable practice because if you have a branch named x.y.z then you can't have a tag with that same x.y.z too. Anything I'm misunderstanding or missing? |
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
When using the semver approach for
branch
in.gitmodules
as documented, renovate will update using tags.However if the target repository uses tag-like branches, renovate seems to pick them up as tags for new versions and updates to the HEAD of those, rather than only for tags.
Example repo using pre-release branches (e.g.
4.10.0
=>v4.10.0
tag after release):https://github.com/wazuh/wazuh-kubernetes/branches (at the time of writing, a
4.1.0
branch exists)https://github.com/wazuh/wazuh-kubernetes/tags (at the time of writing,
v4.9.0
is the latest tag)Reproduction repo:
https://github.com/nejch/renovate-repro-git-semver
Reproduction repo PR with update to branch:
https://github.com/nejch/renovate-repro-git-semver/pull/1/files
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions