From 0b3a2270a46883a19dd5ad6e1a4ceaf5f58acd46 Mon Sep 17 00:00:00 2001 From: Spencer Clark Date: Sat, 2 Apr 2022 11:47:04 -0400 Subject: [PATCH] Use the `-k explicit` option when creating lockfiles in CI (#107) * Specify name of lockfile in .cirrus.yml * Use -k explicit --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 2616d5f..0c93aaa 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -89,7 +89,7 @@ linux_task: - echo "$(date +%Y).$(expr $(date +%U) / ${CACHE_PERIOD}):${NCTA_CACHE_BUILD}" - cat ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml populate_script: - - conda-lock --mamba --platform linux-64 --file ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml + - conda-lock -k explicit --mamba --platform linux-64 --file ${CIRRUS_WORKING_DIR}/requirements/py$(echo ${PY_VER} | tr -d ".").yml - mamba create --name py${PY_VER} --quiet --file conda-linux-64.lock - cp conda-linux-64.lock ${HOME}/mambaforge/envs/py${PY_VER} test_script: