fix(bootstrap): auto-accept Anaconda channel ToS

This commit is contained in:
2026-04-26 02:16:59 +00:00
parent 25f6a07fd6
commit eaa9da471f

View File

@@ -49,6 +49,10 @@ fi
source "$CONDA_DIR/etc/profile.d/conda.sh"
# ── Step 2: conda env ────────────────────────────────────────
# Accept Anaconda channel ToS (required by recent conda versions)
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main >/dev/null 2>&1 || true
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r >/dev/null 2>&1 || true
echo "::stage:: conda_env"
if conda env list | awk '{print $1}' | grep -qx "$ENV_NAME"; then
echo "[2/5] Conda env $ENV_NAME already exists"