fix(platform): preserve explicit local dryRun#43129
fix(platform): preserve explicit local dryRun#43129zeitlinger wants to merge 4 commits intorenovatebot:mainfrom
Conversation
|
Hi there, Please help this Discussion progress by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running Renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
|
I'm not sure I've seen this behaviour before - please share a case where you're seeing this happen (and the version of Renovate) Also, when raising PRs, please follow our PR template |
|
Observed with Renovate Concrete case: LOG_LEVEL=debug LOG_FORMAT=json \
RENOVATE_CONFIG_FILE=.github/renovate.json5 \
renovate --platform=local --require-config=ignored --dry-run=extractExpected: effective Actual on the affected versions: local platform init sets The practical symptom we saw was that a caller intentionally invoking local mode with The minimal code path behind the behavior is:
This PR only changes local platform behavior to preserve an explicit incoming |
My last comment is not a complete repo - please tell me if it's still needed. |
…p otherwise Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
|
Updated the PR description to follow the template. Thanks! |
|
docs should be updated |
Changes
When the local platform initializer is called with an explicit
dryRunvalue, preserve it instead of always overwriting withlookup. Onlyextractis preserved — anything else (includingfull, which would error against the local platform) falls back tolookup.Context
AI assistance disclosure
Used Claude Code for the initial diagnosis, code change, and test additions.
Documentation (please check one with an [x])
How I've tested my work (please select one)