This repo contains
- the
self-hosted"project" that can be executed. - it contains two Renovate-compatible dependencies (both out of date):
gradle/libs.versions.toml>junit:junitself-hosted/package.json>renovate
- the
mainbranch contains a renovate.json that excludesgradle/**, so it'll pick up the outdatedrenovatedep. - the
some_branchbranch contains a modified renovate.json that excludesself-hosted/**, so it'll pick up the outdatedjunit:junitdep. - a PR (#1) from
some_branchtomainand the repro step 5 is simulating the verification (QA) of this configuration change PR. The diff is
"ignorePaths": [
- "gradle/**"
+ "self-hosted/**"
]How to reproduce renovatebot/renovate#17635?
- Clone this repository
- Run
npm installinself-hostedfolder. set RENOVATE_TOKEN=ghp_...set LOG_LEVEL=debug- Run
npm run renovate > some_branch.loginself-hostedfolder. - Edit
config.jsand remove these lines:- baseBranches
- useBaseBranchConfig
- Run
npm run renovate > main.loginself-hostedfolder.
printConfig: true is set in config.json and therefore I'm expecting to see the merged configuration after the some_branch config is merged into the main config.
cat main.log | grep "ignorePaths" yields this 5 times
"ignorePaths": ["gradle/**"]
cat some_branch.log | grep "ignorePaths" yields this 5 times
"ignorePaths": ["gradle/**"]
That is, there's 0 mention of the overridden (merged) self-hosted/** ignore.
BUT
observe packageFiles with updates in the logs:
- in
main.logit shows thenpmmanager finding
"packageFile": "self-hosted/package.json", - in
some_branch.logit shows thegradlemanager finding
"packageFile": "gradle/libs.versions.toml",
and this proves that the ignorePaths is actually overridden.