-
Notifications
You must be signed in to change notification settings - Fork 16
ignoreDeps doesn't work with multiple packages.json #76
Comments
The package rule there does nothing. What was your intention for it? All package.json files should be detected without needing further configuration. |
Oh, I've misunderstood it. I've removed packageRules but the following ignoreDeps configuration might not do anything. I just want to manage version of ms-rest-js in B/package.json by hand. {
"labels": ["renovate"],
"repositories": [
{
"repository": "my-org/repository-name",
"ignoreDeps": [
"ms-rest-js"
]
}
]
} |
Are you using the Renovate app or self hosted? |
self hosted. |
Normally I recommend putting the config in removate.json within a repository instead of the config.js butbeither should work. In the last config you posted, ms-rest-js should be ignored for the entire repository (any package file). |
I tried specify the command line option $ renovate --ignore-deps ms-rest-js my-org/repository-name But running without the command line option and putting the above renovate.json to master, Renovate creates a pull-request to update ms-rest-js. |
Please copy and paste the full and exact renovate.json here. Also run at —log-level=debug and search that for ms-rest-js |
The json contents of #76 (comment) is the full of renovate.json (but I've replaced our private repository name to I've tried to run with
|
You can’t just copy/paste config.js to renovate.json. config.js is a multi repository config while renovate.json is single repository config. Therefore the “repositories” object is incorrect for Renovate.json. Delete that and put ignoreDeps at the top level of the config |
Thanks soooooo much! I've confused about these configurations. Thanks for your kind and quick helping.
I think that if renovate-config-validator detects this kind of mistakes might be good 😄 |
Yes, I agree that the validator should flag a problem if repositories is configured in renovate.json. |
I've created the following renovate.json but ignoreDeps might not be recognized.
The "B" sub directory depends on the ms-rest-js package, but it should be updated by hand.
The text was updated successfully, but these errors were encountered: