auto_update_conda=false (#1063)

Avoid odd failure captured in https://github.com/conda-forge/conda-libmamba-solver-feedstock/issues/2
by preventing conda from automatically updating itself when installing conda-build
This commit is contained in:
Tim Snyder 2022-06-01 22:09:32 +00:00 committed by GitHub
parent 382d0f83e9
commit dc8d5b14bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ set -o pipefail
"${DRY_RUN_ECHO[@]}" $SUDO "$CONDA_EXE" config --system --set changeps1 false
# don't automatically activate the 'base' environment when intializing shells
"${DRY_RUN_ECHO[@]}" $SUDO "$CONDA_EXE" config --system --set auto_activate_base false
# don't automatically update conda to avoid https://github.com/conda-forge/conda-libmamba-solver-feedstock/issues/2
"${DRY_RUN_ECHO[@]}" $SUDO "$CONDA_EXE" config --system --set auto_update_conda false
# conda-build is a special case and must always be installed into the base environment
$SUDO "$CONDA_EXE" install $DRY_RUN_OPTION -y -n base conda-build