From 375d6f30f889c1aac71abe27c3781fab9d908818 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Fri, 19 Jun 2026 09:32:49 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20fix(ci):=20lint=20venv=20=E6=AE=8B?= =?UTF-8?q?=E7=95=99=E5=AF=BC=E8=87=B4=20ensurepip=20=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:lint job 创建 /tmp/ci-venv-lint 后不清理,下次运行时 venv 模块尝试在已有目录上 upgrade,ensurepip 调用失败。 test job 已有 rm -rf /tmp/ci-venv-test,lint job 缺失。 修复:lint Setup Python step 首行加 rm -rf /tmp/ci-venv-lint。 --- .gitea/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 82ffd4b..916d31f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: - name: Setup Python run: | + rm -rf /tmp/ci-venv-lint python3 -m venv /tmp/ci-venv-lint /tmp/ci-venv-lint/bin/pip install --quiet --upgrade pip /tmp/ci-venv-lint/bin/pip install --quiet flake8