Skip to content

Commit 1007e7b

Browse files
committed
fixup! Update conda environment if its outdated compared to the environment.yml
1 parent 87ff3c6 commit 1007e7b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

scripts/activateCondaEnvironment.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ echo "activateCondaEnvironment: CONDA_PREFIX=${CONDA_PREFIX}"
3737
echo "activateCondaEnvironment: Current conda environment=${CONDA_DEFAULT_ENV}"
3838
echo "activateCondaEnvironment: Target conda environment=${CODEGRAPH_CONDA_ENVIRONMENT}"
3939

40-
if [ "${CONDA_DEFAULT_ENV}" = "${CODEGRAPH_CONDA_ENVIRONMENT}" ] ; then
41-
echo "activateCondaEnvironment: Skipping activation. Target conda environment ${CODEGRAPH_CONDA_ENVIRONMENT} is already activated."
42-
# "return" needs to be used here instead of "exit".
43-
# This script is included in another script by using "source".
44-
# "exit" would end the main script, "return" just ends this sub script.
45-
return 0
46-
fi
40+
# TODO Find out, if conda updates (when needed) should also be done here instead of just returning 0.
41+
# if [ "${CONDA_DEFAULT_ENV}" = "${CODEGRAPH_CONDA_ENVIRONMENT}" ] ; then
42+
# echo "activateCondaEnvironment: Skipping activation. Target conda environment ${CODEGRAPH_CONDA_ENVIRONMENT} is already activated."
43+
# # "return" needs to be used here instead of "exit".
44+
# # This script is included in another script by using "source".
45+
# # "exit" would end the main script, "return" just ends this sub script.
46+
# return 0
47+
# fi
4748

4849
# Include operation system function to for example detect Windows.
4950
source "${SCRIPTS_DIR}/operatingSystemFunctions.sh"

0 commit comments

Comments
 (0)