From ccf5de27d5fd305f6cfbf4bb8ac0990c3245cf1a Mon Sep 17 00:00:00 2001 From: Robin Schroer Date: Wed, 21 Feb 2024 14:32:33 +0900 Subject: [PATCH] Ignore the Python managed environment error We've run into https://peps.python.org/pep-0668/, because we install a bunch of Python packages via apt, and then try to also install the awscli package via pip, which is not happy about having two sources of packages. We've always been doing this, so presumably it's safe to continue doing so. --- .github/workflows/build-rails-base.yml | 4 ++-- .github/workflows/build-rails-buildpack.yml | 4 ++-- .github/workflows/clone-images.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-rails-base.yml b/.github/workflows/build-rails-base.yml index 03f00cc..2b3d904 100644 --- a/.github/workflows/build-rails-base.yml +++ b/.github/workflows/build-rails-base.yml @@ -30,8 +30,8 @@ jobs: - name: prepare run: |- apk add --no-cache python3 py3-pip - pip3 install --upgrade pip - pip3 install awscli + pip3 install --break-system-packages --upgrade pip + pip3 install --break-system-packages awscli - name: workaround git security run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - uses: actions/checkout@v3 diff --git a/.github/workflows/build-rails-buildpack.yml b/.github/workflows/build-rails-buildpack.yml index 81f700a..850883e 100644 --- a/.github/workflows/build-rails-buildpack.yml +++ b/.github/workflows/build-rails-buildpack.yml @@ -33,8 +33,8 @@ jobs: - name: prepare run: |- apk add --no-cache python3 py3-pip - pip3 install --upgrade pip - pip3 install awscli + pip3 install --break-system-packages --upgrade pip + pip3 install --break-system-packages awscli - name: workaround git security run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - uses: actions/checkout@v3 diff --git a/.github/workflows/clone-images.yml b/.github/workflows/clone-images.yml index c7417b6..05e34b0 100644 --- a/.github/workflows/clone-images.yml +++ b/.github/workflows/clone-images.yml @@ -23,8 +23,8 @@ jobs: - name: prepare run: |- apk add --no-cache python3 py3-pip - pip3 install --upgrade pip - pip3 install awscli + pip3 install --break-system-packages --upgrade pip + pip3 install --break-system-packages awscli - name: workaround git security run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - uses: actions/checkout@v3