From 16ce7a93ad5f57d48fa79f7b0f6675f6fe6ce2fc Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 10 May 2023 13:48:28 -0600 Subject: [PATCH] Fix `/condalock` command It was broken by a release of `urllib 2.x` which was incompatible with `cachecontrol`. A future release of `cachecontrol` may add this pin to its own dependencies or otherwise fix the incompatibility, at which time the hacky pin can be removed. --- .github/workflows/conda-lock-command.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conda-lock-command.yml b/.github/workflows/conda-lock-command.yml index 4fa9b7f..587f32a 100644 --- a/.github/workflows/conda-lock-command.yml +++ b/.github/workflows/conda-lock-command.yml @@ -41,8 +41,10 @@ jobs: python-version: '3.10' # Install conda-lock library + # HACK: Temporarily pin urllib3<2 to resolve incompatibilities: + # https://github.com/ionrock/cachecontrol/issues/292 - name: Install conda-lock - run: pip install conda-lock + run: 'pip install conda-lock "urllib3<2"' # Run "conda-lock" for linux-64 only - name: Run conda-lock