From 35613261247495a4a00a2780b5f893cff3956a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=BDubo=C5=A1=20Mjachky?= Date: Wed, 3 Jan 2024 14:25:09 +0100 Subject: [PATCH] Remove extras from the lowerbounds constraints This fixes the "Constraints cannot have extras" error observed in the pulp-container's CI (https://github.com/pulp/pulp_container/pull/1441). The workaround was taken from https://github.com/jazzband/pip-tools/issues/1300#issuecomment-818122483. [noissue] --- templates/github/.github/workflows/scripts/before_install.sh.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/github/.github/workflows/scripts/before_install.sh.j2 b/templates/github/.github/workflows/scripts/before_install.sh.j2 index 8d062845..b35181d4 100755 --- a/templates/github/.github/workflows/scripts/before_install.sh.j2 +++ b/templates/github/.github/workflows/scripts/before_install.sh.j2 @@ -62,6 +62,7 @@ fi if [[ "$TEST" = "lowerbounds" ]]; then python3 .ci/scripts/calc_deps_lowerbounds.py > lowerbounds_constraints.txt + sed -i 's/\[.*\]//g' lowerbounds_constraints.txt fi if [ -f $POST_BEFORE_INSTALL ]; then