From 9e43e67df476543ded4e0539b6c15baf04058315 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Thu, 16 Jul 2026 22:46:13 -0700 Subject: [PATCH] ci: set UV_LINK_MODE=copy in the Windows workflow uv defaults to hardlink/clone link mode on Windows, which cannot replace _pydantic_core.*.pyd while the file is loaded by another process on the runner. That surfaces as "failed to remove file ...: Access is denied. (os error 5)" in the Install Dependencies step (comfy install --fast-deps shells out to python -m uv pip install), followed by a half-removed .pyd and an ImportError on pydantic_core. Copy mode writes a fresh file instead of hardlinking, sidestepping the in-use-file replacement failure. --- .github/workflows/test-windows.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index febabaec..4831eac1 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -14,6 +14,9 @@ jobs: runs-on: windows-latest env: PYTHONIOENCODING: "utf8" + # uv hardlinks by default, which cannot replace a .pyd that is still + # loaded by another process on the runner (os error 5). Copy instead. + UV_LINK_MODE: copy steps: - name: Check out code