renovatebot / config-help

Please use the Discussions feature of https://github.com/renovatebot/renovate instead
https://github.com/renovatebot/renovate/discussions
MIT License
27 stars 16 forks source link

Renovate not updating all .tf files together when there's templating in some #927

Closed MartinPetkov closed 4 years ago

MartinPetkov commented 4 years ago

Which Renovate are you using?

WhiteSource Renovate App

Which platform are you using?

GitHub.com

Have you checked the logs? Don't forget to include them if relevant

No, the app is installed for the org (GoogleCloudPlatform) and I can't log in as it.

What would you like to do?

Our repo does Go templating to generate Terraform configs, and we've checked in both the .tf templates and the .tf generated files to use as examples. Prior to https://github.com/GoogleCloudPlatform/healthcare-data-protection-suite/pull/604, it would update both the files under templates/ and the files under examples/generated/ in the same PR. However, after that PR, it only updates the examples, not the templates - see https://github.com/GoogleCloudPlatform/healthcare-data-protection-suite/pull/610. My guess is that there's a packageRule that groups both "regex" and "terraform" managers, but the fileMatch was only applied to the "terraform" manager and not the "regex" one.

viceice commented 4 years ago

Your config is wrong. Move the fileMatch to regexManager config.

Your regex manager config has missing required fileMatch option.

rarkins commented 4 years ago

Please see https://github.com/GoogleCloudPlatform/healthcare-data-protection-suite/pull/614 for what I think is hopefully the proper solution

Explanation: