chore(ci): make Rustup mirror configurable via build args#92
Conversation
fslongjin
commented
Apr 27, 2026
- Add RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT as ARG in Dockerfile
- Change hardcoded ENV values to reference ARG variables
- Allow CI workflows to override with official Rust servers ( https://static.rust-lang.org))
- Add RUSTUP_DIST_SERVER and RUSTUP_UPDATE_ROOT as ARG in Dockerfile - Change hardcoded ENV values to reference ARG variables - Allow CI workflows to override with official Rust servers ( [https://static.rust-lang.org)](https://static.rust-lang.org)) Signed-off-by: jinlong <jinlong@tencent.com>
|
Claude finished @fslongjin's task in 2m 26s —— View job PR #92 Review: Make Rustup mirror configurable via build args
DCO CheckThe commit includes SummaryThis is a clean, well-structured PR that makes the Rustup mirror configuration overridable via Docker build args. The approach is correct and follows Docker best practices:
Findings
Overall: This PR looks good. No blocking issues found. |
| | sh -s -- -y --profile minimal --default-toolchain none | ||
|
|
There was a problem hiding this comment.
Minor style note: the ENV block above (lines 17-30) uses the multi-line \ continuation format. These two standalone ENV lines could be folded into that block for consistency, since they're all just setting environment variables:
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
... \
RUSTUP_DIST_SERVER="${RUSTUP_DIST_SERVER}" \
RUSTUP_UPDATE_ROOT="${RUSTUP_UPDATE_ROOT}"This is purely a style preference — the current approach is also valid and keeps the rustup-related config visually separate, which has its own readability benefit. Just flagging for consideration.