Skip to content

Commit 6ac4a7c

Browse files
authored
Accept conda channels' ToS when building the upstream docker image. (#9661)
This PR should fix [the error](https://github.com/pytorch/xla/actions/runs/18161391171/job/51692786522) we've been getting when trying to build the upstream image. It simply adds to the `install_conda.sh` script what `conda` suggests us to do.
1 parent 3862b87 commit 6ac4a7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/upstream/install_conda.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ 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
33+
3034
conda update -y -n base conda
3135
conda install -y python=$PYTHON_VERSION
3236

0 commit comments

Comments
 (0)