hostRules in inherited config being ignored #31461
Replies: 5 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.
-
Please create a reproduction with dummy hostRules with inheritConfig. This will be enough for us to debug the problem and confirm the solution once fixed |
Beta Was this translation helpful? Give feedback.
-
I encountered the same issue with Github mend app. If I put my hostRules in my-org/renovate-config, these are ignored. Same rules in the repo conf works. |
Beta Was this translation helpful? Give feedback.
-
Hi Reproduction repo with some notes : https://github.com/xavier-calland/renovate-reproduction-d31461-inherited This was working with Renovate <= 39.63.0 I think this commit is the cause of the change in behavior. |
Beta Was this translation helpful? Give feedback.
-
@RahulGautamSingh can you try to debug/fix this from code inspection? |
Beta Was this translation helpful? Give feedback.
-
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
Please tell us more about your question or problem
Any
hostRules
in the inherited config file are completely ignored.I suspect it may be because
inherited.ts
is missing the equivalent of this block that actually registers themhttps://github.com/renovatebot/renovate/blob/main/lib/workers/repository/init/merge.ts#L252-L268
I tried copying it into inherited.ts and the inherited hostRules started being registered and respected.
(Difficult to come up with a minimal repro that would actually use hostRules in a visible way)
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions