Fix invalid Renovate packageRules matcher - #96
Merged
Conversation
`matchPackagePatterns` and `excludePackageNames` are both deprecated. Renovate's config migration rewrites them into a single `matchPackageNames: ["*", "!python"]`, which is invalid: `*` means "match everything" and cannot be combined with other patterns. Use the negation-only form instead. With no positive patterns present, every package matches unless a negative pattern rejects it, so this preserves the original intent of grouping all minor/patch updates except `python`. Verified with `renovate-config-validator`: the previous config fails with the reported error, the new one validates cleanly. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BJb27fB7d7HbQqfXc7U66V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #93
Renovate is currently refusing to open PRs on this repo:
Root cause
matchPackagePatternsandexcludePackageNamesare both deprecated. Renovate's config migration collapses them into a single key:*is a special value meaning "match everything" and cannot be combined with any other pattern — so the migrated config is invalid. That's why the error names a key the file didn't literally contain.Fix
Use the negation-only form. A match succeeds when at least one positive pattern matches (vacuously true when there are none) and no negative pattern matches, so every package is still grouped except
python— same behaviour as before.Verification
renovate-config-validatorreproduces the reported error on the old config and passes on the new one:🤖 Generated with Claude Code
https://claude.ai/code/session_01BJb27fB7d7HbQqfXc7U66V