From dc39aa820459702148a4bed7570b230f7b2df42d 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 ca32b03..c68a2b3 100644 --- a/.github/workflows/build-rails-base.yml +++ b/.github/workflows/build-rails-base.yml @@ -27,8 +27,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