Skip to content

Commit 1ab6787

Browse files
authored
Accept conda channels' ToS with environment variable. (#9666)
Follow-up: #9661 Apparently, we need to accept the ToS of those same channels, again ([link](https://github.com/pytorch/xla/actions/runs/18172128014/job/51729124142)). Instead, I'm using the `CONDA_PLUGINS_AUTO_ACCEPT_TOS` environment variable, documented [here](pytorch/pytorch#158438 (comment)).
1 parent 1348545 commit 1ab6787

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/upstream/install_conda.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function install_and_setup_conda() {
2727
fi
2828
export CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
2929

30-
# Accept Conda channel ToS.
31-
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main
32-
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
30+
# Accept Conda channels' ToS automatically.
31+
# Ref: https://github.com/pytorch/pytorch/issues/158438#issuecomment-3084935777
32+
export CONDA_PLUGINS_AUTO_ACCEPT_TOS="yes"
3333

3434
conda update -y -n base conda
3535
conda install -y python=$PYTHON_VERSION

0 commit comments

Comments
 (0)