Overrides are not reflected in deps.json causing renovate trying to update those
See original GitHub issueCurrently there’s 3 overrides in our constructs:
"overrides": {
"@types/responselike": "1.0.0",
"got": "12.3.1",
"@types/prettier": "2.6.0"
},
When renovate runs, it tries to offer updated for those, which causes failure as projen
run would revert versions (and we check in pipeline that code is not mutated).
upgrade
task seems to be ignoring overrides, but Renovate doesn’t.
Not sure which one works incorrectly, as at least in Renovate support to overrides was explicitly added: https://github.com/renovatebot/renovate/issues/15278.
Expected result
Renovate should ignore overrides, or at least offer flag to ignore those.
As versions are not in .projen/deps.json
, some additional logic is needed.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[BUG] Overrides are not updating after running npm install
I'm seeing this issue on 8.5.5 currently; removing node_modules and package-lock.json and doing npm install does install the overridden ...
Read more >Configuration Options - Renovate Docs
Constraints are used in package managers which use third-party tools to update "artifacts" like lock files or checksum files. Typically, the constraint is ......
Read more >Renovate: Dependency updates on steroids - LogRocket Blog
This article addresses an important issue in software development projects: keeping dependencies up to date. Updating dependencies closes ...
Read more >What is deps.json, and how do I make it use relative paths?
MyApp.deps.json is a list of dependencies, as well as compilation context data and compilation dependencies. Not technically required ...
Read more >NuGet Package Dependency Resolution - Microsoft Learn
Details on the process through which a NuGet package's dependencies are resolved and installed in both NuGet 2.x and NuGet 3.x+.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Those overrides are on normal CDK construct, so something that’s not explicitly added. Those are also internal, so CIs are not on GitHub that would be easy option for Projen project. That’s also one reason why Renovate is in use. Other is that same mechanism for dependency maintenance is used on applications and constructs.
Renovate is quite similar to dependabot, but offers some nice additions to it like grouping of dependencies to same PR.
Handling of those overrides was added to Renovate last May, so I doubt that handling of those is not going to be removed.
So for the options I don’t see any of those work, and actually started to check the projen code how those overrides could be got to renovate’s ignore list like now packages with defined versions (by projen) are.
My bad @Hi-Fi I wasn’t aware Renovate Bot is supported in projen 🤯
Thanks for finding this and for working on the PR!