[Bug] Login shell error: bash: /root/.cargo/env: No such file or directory (#12941)

This commit is contained in:
Johnsonms
2025-11-11 08:52:02 -08:00
committed by GitHub
parent 5de25f786e
commit 63728b1154

View File

@@ -314,7 +314,8 @@ RUN --mount=type=cache,target=/root/.cache/pip curl --proto '=https' --tlsv1.2 -
&& cd /sgl-workspace/sglang/sgl-router \
&& ulimit -n 65536 && maturin build --release --features vendored-openssl --out dist \
&& python3 -m pip install --force-reinstall dist/*.whl \
&& rm -rf /root/.cargo /root/.rustup target dist ~/.cargo
&& rm -rf /root/.cargo /root/.rustup target dist ~/.cargo \
&& sed -i '/\.cargo\/env/d' /root/.profile /root/.bashrc 2>/dev/null || true
# Add yank script