- install renovate cli https://docs.renovatebot.com/getting-started/running/#npm-package-cli
- run
LOG_LEVEL=debug renovate --platform=local --dry-run=lookup --repository-cache=reset | tee renovate.txt
(or similar) - within renovate.txt, locate the detected updates
- extract the json object within the
"config"
key and save it as renovate.txt.json. e.g.
becomes`DEBUG: packageFiles with updates (repository=local)` "config": { "dockerfile": [ { "deps": [ {
{ "dockerfile": [ { "deps": [ {
- run
./renovate.py
(source below) - the script has 2 ouputs
- a reduced but still rather verbose representation of the input json, formatted as yaml. this is ordered by a hierarchy of dependency type (e.g. npm) -> packageFile (e.g. package.json) -> depName (e.g. react) -> updates (e.g. major)
- an inverse hierarchy, formatted as yaml. It is ordered by branchName (e.g. renovate/major-react-dependencies, see how it encodes relevant info at https://docs.renovatebot.com/configuration-options/#branchtopic and https://docs.renovatebot.com/configuration-options/#groupslug) -> the depnames and updateTypes updated on this branch (e.g. react: major)
Limitations
Renovate might skip some packages when run locally. This will be shown in the first of the outputs by including skipReason
s, including internal package
and github-token-required
, which I have not tried to figure out.