Skip to content

ci: fix renovate config parsing#7176

Merged
phisco merged 1 commit into
crossplane:mainfrom
phisco:fix-renovate
Mar 3, 2026
Merged

ci: fix renovate config parsing#7176
phisco merged 1 commit into
crossplane:mainfrom
phisco:fix-renovate

Conversation

@phisco
Copy link
Copy Markdown
Contributor

@phisco phisco commented Mar 3, 2026

Description of your changes

Fixes #7174

I have:

Need help with this checklist? See the cheat sheet.

Signed-off-by: Philippe Scorsolini <5697904+phisco@users.noreply.github.com>
@phisco phisco requested a review from a team as a code owner March 3, 2026 11:47
@phisco phisco requested a review from haarchri March 3, 2026 11:47
Copy link
Copy Markdown
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable, thanks @phisco! can you also share how you were able to validate this?

@phisco
Copy link
Copy Markdown
Contributor Author

phisco commented Mar 3, 2026

Just running the command didn't load all the files for some reason, so I had to pass them all manually, the warnings are fine as they are supposed to be merged:

$ npx --yes --package renovate -- renovate-config-validator --strict .github/renovate-base.json5 .github/renovate-earthly.json5 .github/renovate-nix.json5 .github/renovate.json5

 INFO: Validating .github/renovate-base.json5
 INFO: Validating .github/renovate-earthly.json5
 WARN: Found errors in configuration
       "file": ".github/renovate-earthly.json5",
       "warnings": [
         {
           "topic": "Configuration Error",
           "message": "packageRules[0]: You must configure baseBranches inorder to use them inside matchBaseBranches."
         },
         {
           "topic": "Configuration Error",
           "message": "packageRules[1]: You must configure baseBranches inorder to use them inside matchBaseBranches."
         }
       ]
 INFO: Validating .github/renovate-nix.json5
 WARN: Found errors in configuration
       "file": ".github/renovate-nix.json5",
       "warnings": [
         {
           "topic": "Configuration Error",
           "message": "packageRules[0]: You must configure baseBranches inorder to use them inside matchBaseBranches."
         },
         {
           "topic": "Configuration Error",
           "message": "packageRules[1]: You must configure baseBranches inorder to use them inside matchBaseBranches."
         }
       ]
 INFO: Validating .github/renovate.json5

@phisco phisco merged commit 1abb7b5 into crossplane:main Mar 3, 2026
24 checks passed
@phisco phisco deleted the fix-renovate branch May 6, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

renovate is broken with Preset is invalid JSON

2 participants