Better handling of "additional" files #21677
Replies: 4 comments
-
I think adding the file property, where the change was found is the better idea. With that we can use our generic replacement to update the file and add it to the commit. |
Beta Was this translation helpful? Give feedback.
-
Yes that was part of the idea. Would make generic replacement much easier! |
Beta Was this translation helpful? Give feedback.
-
Are the |
Beta Was this translation helpful? Give feedback.
-
@secustor The ultimate idea of this issue is that:
|
Beta Was this translation helpful? Give feedback.
-
We now have a few cases, such as in Gradle and Maven, where Renovate may extract and update a file which is not the original "package file".
In some cases we require users to define
fileMatch
for the extra file, while in others we find and later update it automatically.I noticed a use case from
ansible-galaxy
that should make us consider if we make this concept have first-class support, e.g. file a new field.Docs: https://galaxy.ansible.com/docs/using/installing.html#multiple-roles-from-multiple-files
Screenshot:
Today a Renovate user would need to extend their
fileMatch
to include this<path_to_requirements>/webserver.yml
file, but in theory the better use case would be if theansible-manager
could detect and parse it automatically. The question I have is how we can "de-duplicate" our results in such a case. Possibilities:requirements.yaml
, but deps can optionally include a new field named something likefoundInFile
that would e.g. be<path_to_requirements>/webserver.yml
in this caseBeta Was this translation helpful? Give feedback.
All reactions