From 18e7452420158f2e6037f0cb9e357c0620827a92 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 27 Apr 2024 19:27:49 -0700 Subject: [PATCH 1/5] Alternative Rust setup action --- .github/actions/build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 54b3c3fcb..4818cdaa3 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -63,7 +63,7 @@ runs: shell: bash if: ${{ inputs.partial == 'false' }} - name: Setup Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: actions-rs/toolchain@v1 with: toolchain: stable components: clippy From cf590cac125501dc3da55debb0ef367975bb8f44 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 27 Apr 2024 19:47:25 -0700 Subject: [PATCH 2/5] Use --break-system-packages flag --- .github/actions/build/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 4818cdaa3..c6e65b314 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -53,9 +53,7 @@ runs: if: ${{ inputs.package == 'true' && inputs.pre-release == 'true'}} - name: Install pylint run: | - python3 -m venv .venv - source .venv/bin/activate - python3 -m pip install pylint + sudo pip3 install pylint --break-system-packages shell: bash if: ${{ inputs.partial == 'false' }} - name: Install pnpm From 7f99d910972afa4daf77769210ad3d6101309a2c Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 27 Apr 2024 19:49:22 -0700 Subject: [PATCH 3/5] Try to upgrade pip --- .github/actions/build/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index c6e65b314..4ba40152c 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -53,7 +53,8 @@ runs: if: ${{ inputs.package == 'true' && inputs.pre-release == 'true'}} - name: Install pylint run: | - sudo pip3 install pylint --break-system-packages + sudo python -m pip install --upgrade pip + sudo pip install pylint --break-system-packages shell: bash if: ${{ inputs.partial == 'false' }} - name: Install pnpm From 50a5686eaf911495340430efaad5e67d636f620d Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 27 Apr 2024 19:59:58 -0700 Subject: [PATCH 4/5] Use pip3? --- .github/actions/build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 4ba40152c..b57bb83a7 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -54,7 +54,7 @@ runs: - name: Install pylint run: | sudo python -m pip install --upgrade pip - sudo pip install pylint --break-system-packages + sudo pip3 install pylint --break-system-packages shell: bash if: ${{ inputs.partial == 'false' }} - name: Install pnpm From 7d782349dcd13cc9ba81a5e2b94b863170402c3f Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Sat, 27 Apr 2024 20:01:57 -0700 Subject: [PATCH 5/5] Remove sudo --- .github/actions/build/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index b57bb83a7..1b6d82c8d 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -53,8 +53,8 @@ runs: if: ${{ inputs.package == 'true' && inputs.pre-release == 'true'}} - name: Install pylint run: | - sudo python -m pip install --upgrade pip - sudo pip3 install pylint --break-system-packages + python -m pip install --upgrade pip + pip3 install pylint --break-system-packages shell: bash if: ${{ inputs.partial == 'false' }} - name: Install pnpm