Problem with extends configuration from repository
#39659
Replies: 3 comments 1 reply
-
|
Is the problem with |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, Please help this Discussion progress 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.
-
|
Minimal reproduce: https://github.com/piotar/renovate-reproductions-39659 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
Which platform you running Renovate on?
GitLab (.com or self-hosted)
Which version of Renovate are you using?
42.27.5
Please tell us more about your question or problem
For over two months, the migration of static configuration from the repository has been failing.
The
extendsproperty from the repository-provided config file is not migrated correctly when its type is a simplestring.When running in debug mode, I get the following output:
After that, Renovate attempts to find a preset named
renovate-config-g, which suggests that the string was incorrectly transformed into an array and only the first character (g) was taken as an entry.It seems related to this issue:
https://github.com/renovatebot/renovate/pull/37115/files
Based on the code, the
extendsfield is destructured before migrations run, which might cause this behavior:Actual behavior
extendsvalue is not migrated at all (DEBUG: No config migration necessary).extendsstring before migration, treating it as an array and incorrectly extracting only its first character.Expected behavior
extendsfield provided in the repository'srenovate.json(even when defined as a simplestring) should be correctly migrated during the config migration phase.extendsstring without altering or splitting it.Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions