From 20f298bdfbcc8b16cfbd97c4c2b438a272ac9d81 Mon Sep 17 00:00:00 2001
From: Karl Wette <karl.wette@ligo.org>
Date: Wed, 1 Jun 2022 14:26:04 +1000
Subject: [PATCH] .gitlab-ci.yml: pin conda/mamba to stable major/minor
 versions

[skip rhel][skip debian][skip compiler][skip integration][skip documentation][skip wheels][skip platform]
---
 .gitlab-ci.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f94bbaf7ee..8871e8cc70 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -460,8 +460,10 @@ workflow:
   # see https://github.com/conda-forge/conda-forge-ci-setup-feedstock/pull/168
   - conda config --show aggressive_update_packages >> ${CONDARC}
   - conda config --file ${CONDARC} --remove aggressive_update_packages openssl
-  # update conda and mamba
-  - retry conda update -n base conda mamba
+  # pin conda and mamba to stable major/minor versions
+  - conda --version | sed -n '/^conda /p' | sed 's|[0-9]*$|*|' >> ${CONDA_ROOT}/conda-meta/pinned
+  - mamba --version | sed -n '/^mamba /p' | sed 's|[0-9]*$|*|' >> ${CONDA_ROOT}/conda-meta/pinned
+  - grep -H . ${CONDA_ROOT}/conda-meta/pinned
   # install build helpers
   - retry mamba install -n base
         "conda-build!=3.18.10"
-- 
GitLab