From 45fdc8db93c9adc3a5308fbbc26602b5a45a7bd6 Mon Sep 17 00:00:00 2001 From: BluishHumility Date: Mon, 11 Dec 2023 14:04:19 -0500 Subject: [PATCH] ci: fix pip refusing to install any package Workaround in place as per https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-sway-settings/-/issues/2#note_1689180378 --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fb8122..3b42eba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,9 @@ check-commitizen: GIT_STRATEGY: none script: - apk add --no-cache --upgrade py3-pip - - pip install -U commitizen + # Pass --break-system-packages since since this containers sole purpose is + # running 2 applications. If we get to advance this, implement a proper venv + - pip install --break-system-packages commitizen - cz check --message "$CI_COMMIT_MESSAGE" >/tmp/cz_check || true # why does it return 1 if its actually 0? - grep "successful" /tmp/cz_check # ugly hack to workaround the above issue rules: @@ -24,7 +26,9 @@ tag-to-release: GIT_STRATEGY: none script: - apk add --no-cache --upgrade git py3-pip - - pip install -U commitizen + # Pass --break-system-packages since since this containers sole purpose is + # running 2 applications. If we get to advance this, implement a proper venv + - pip install --break-system-packages -U commitizen - git clone "$CI_PROJECT_URL.git" - cd "$CI_PROJECT_NAME" - CHANGELOG=$(cz changelog "$CI_COMMIT_TAG" --dry-run | sed /^Invalid/d)