From f3ecac9a487f1fe5919459b4e8abaf84f1309b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BRIOL?= Date: Tue, 5 Nov 2024 22:42:13 +0100 Subject: [PATCH] Update conda ownership command in CI pipeline to use conda base path --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c241328..1710336 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -113,7 +113,9 @@ jobs: displayName: Initialize the submodules - bash: echo "##vso[task.prependpath]$CONDA/bin" displayName: Add conda to PATH - - bash: sudo chown -R $USER:staff $CONDA + - bash: | + CONDA_PATH=$(conda info --base) + sudo chown -R $USER:staff $CONDA_PATH displayName: Take ownership of conda installation - bash: conda create --yes --quiet --name Build displayName: Create Anaconda environment