New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host rules migration not working as expected #20539
Comments
Fix: I also think it would be good to throw |
If I had to choose between this type of config warning: RahulGautamSingh-testing/merge3#16 versus the risk of breaking apps and users with #20540, then I think I go for letting them have a config warning. @viceice wdyt? |
yes, a config warning issue should the way to go |
Checking my understanding..
|
Hi there, Get your issue 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 issue 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 |
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
34.148.0
If you're self-hosting Renovate, select which platform you are using.
github.com
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Host rules are migrated twice and the first migration effects the next one such that it can't serve its purpose.
renovate/lib/config/migrations/custom/host-rules-migration.ts
Lines 28 to 37 in 35baf4a
renovate/lib/util/host-rules.ts
Lines 18 to 38 in 35baf4a
The custom migration migrates
LegacyHostRule
options tomatchHost
(first come precedence if more than one legacy option is present)And later
migrateRule
function does the same but instead it throws an error if more than 1 legacy option is present.But
migrateRule
will never be called with legacy options as the previous config-migration already takes care of it.Relevant debug logs
Logs
Have you created a minimal reproduction repository?
https://github.com/RahulGautamSingh-testing/repro-20539
The text was updated successfully, but these errors were encountered: