Skip to content

Commit 0ad8c70

Browse files
committed
Remove non-default conda solver setting
1 parent bc55f40 commit 0ad8c70

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ci-support.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,12 @@ install_conda_deps_inner()
419419
CONDA_EXE_DIR=$CONDA_INSTALL_DIR/bin
420420
fi
421421

422-
# This is the default, but it was set to non-default on the Gitlab CIs, and they
423-
# 'remember' that. :/
424-
PATH="$CONDA_EXE_DIR:$PATH" with_echo conda config --set solver classic
422+
# This is to blow away any non-default solver settings that the Gitlab CIs
423+
# may remember.
424+
cat > $HOME/.condarc <<EOF
425+
channels:
426+
- conda-forge
427+
EOF
425428
PATH="$CONDA_EXE_DIR:$PATH" with_echo conda update conda --yes --quiet
426429
PATH="$CONDA_EXE_DIR:$PATH" with_echo conda update --all --yes --quiet
427430
PATH="$CONDA_EXE_DIR:$PATH" with_echo conda env create --file "$CONDA_ENVIRONMENT" --name testing --quiet

0 commit comments

Comments
 (0)