Recursive git submodules #30189
-
What would you like help with?I think I found a bug How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitLab (ghcr.io/renovatebot/renovate:37.429.0) Please tell us more about your question or problemWe have a rust repo which has dependency on a crate which is located in a sub-module of a sub-module. But the problem is not rust specific. Example directory structure:
You can clone the whole repo tree with We have already set the toggle I have created a reproduction repo on GitHub where you can see the same behaviour: https://github.com/Josef-Reichardt/renovate-bot-reproduction-recursive-submodules/ Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Renovate doesn't do a regular renovate/lib/util/git/index.ts Lines 530 to 534 in 17eacd2 I tried adding renovate/lib/util/git/index.ts Lines 354 to 364 in 17eacd2 But it didn't fix your reproduction repo. I've converted this to an issue as I don't have time to look into it any further at the moment: #30294 If you are able to find the solution, a PR would be welcome |
Beta Was this translation helpful? Give feedback.
Renovate doesn't do a regular
clone
for performance optimization reasons. When doing a branch checkout it does attempt to recurse submodules though:renovate/lib/util/git/index.ts
Lines 530 to 534 in 17eacd2
I tried adding
--recurse
to this logic:renovate/lib/util/git/index.ts
Lines 354 to 364 in 17eacd2