-
-
Notifications
You must be signed in to change notification settings - Fork 139
Fix Android command line tools #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
Changes
Checklist
Summary by CodeRabbit