Skip to content

Commit 2c01db3

Browse files
Merge pull request #1039 from rust-lang/u/renovate-config-troubleshooting
renovate: document troubleshooting option
2 parents cd84999 + 71d1e8d commit 2c01db3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/infra/docs/renovate.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,25 @@ Check that Renovate created the
7171
GitHub issue, so that you can
7272
trigger PRs in the repository by interacting with that issue.
7373

74+
### 4. Troubleshooting Renovate behavior
75+
76+
If you don't understand why Renovate doesn't behave as you expect,
77+
you can run it locally in dry-run mode, and evaluate how it resolves
78+
dependency updates:
79+
80+
```bash
81+
82+
RENOVATE_DRYRUN_TOKEN=$(gh auth token) &&\
83+
docker run --rm -it\
84+
-e RENOVATE_TOKEN="$RENOVATE_DRYRUN_TOKEN"\
85+
-e GITHUB_COM_TOKEN="$RENOVATE_DRYRUN_TOKEN"\
86+
-v /tmp:/tmp\
87+
-v $PWD:/usr/src/app\
88+
renovate/renovate:latest renovate --platform=local --repository-cache=reset --dry-run=lookup
89+
```
90+
91+
If you need more logs, add `-e LOG_LEVEL=debug` to the command above.
92+
7493
## Support
7594

7695
If Renovate isn't working, or you have questions, ask in the

0 commit comments

Comments
 (0)