Fix Android command line tools#266
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces an intermediate variable ESCAPED_CMDLINE_TOOLS_PATH derived from RAW_CMDLINE_TOOLS_PATH and uses it as a fallback to set ANDROID_CMDLINE_TOOLS_PATH when the primary modules.json-derived value is absent; also fixes a comment typo ("invaild" → "invalid"). Changes
Sequence Diagram(s)sequenceDiagram
participant Dockerfile
participant modules.json
participant RAW_VAR as RAW_CMDLINE_TOOLS_PATH
participant ESCAPED_VAR as ESCAPED_CMDLINE_TOOLS_PATH
participant ANDROID_VAR as ANDROID_CMDLINE_TOOLS_PATH
participant DEFAULT as default path (/cmdline-tools/latest)
rect rgb(235,240,255)
Dockerfile->>modules.json: read cmdline-tools.path field
modules.json-->>Dockerfile: value? (may be empty)
end
rect rgb(235,255,240)
Dockerfile->>RAW_VAR: set from modules.json value
RAW_VAR->>ESCAPED_VAR: escape/transform RAW value
ESCAPED_VAR-->>ANDROID_VAR: set if non-empty
alt ESCAPED empty
DEFAULT-->>ANDROID_VAR: use default `/cmdline-tools/latest`
end
end
note right of ANDROID_VAR: Resulting path used for Android tooling setup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Gabriel Le Breton <lebreton.gabriel@gmail.com>

Changes
Checklist
Summary by CodeRabbit