Fix Windows CI failure: disable symlinks during dependency installation - #48
Conversation
Co-authored-by: harell <7226303+harell@users.noreply.github.com>
|
@copilot The job is failing during dependency installation on Windows because the installer is trying to create a symlink while installing
Fix: ensure uv truly does not use symlinks on WindowsIn your workflow, you already set Update Option A (recommended): set a job-level env for WindowsAdd this under jobs:
tests:
runs-on: ${{ matrix.os }}
env:
PYTHONIOENCODING: utf-8
UV_NO_SYMLINKS: "true"Then remove the step-level Option B: set it only for Windows in the dependencies stepReplace the - name: Setup dependencies
run: |
uv python pin ${{ matrix.python-version }}
uv export --no-managed-python --no-group doc --resolution ${{ matrix.resolution }} > ci-requirements.txt
uv pip install --system -r ci-requirements.txt
env:
UV_NO_SYMLINKS: ${{ matrix.os == 'windows-latest' && 'true' || '' }}(If you prefer clarity, you can instead split into two dependency steps: one with the env var for Windows and one without for other OSes.) Why this solves itThe failure is specifically: If you apply the job-level env (Option A), it also ensures the setting can’t be missed by any other uv invocation in the job. |
Co-authored-by: harell <7226303+harell@users.noreply.github.com>
Fixed in ee1d25b. Moved |
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
Windows CI jobs fail when installing
jupyterlab-widgets==3.0.16due to restricted symlink creation. The project configures uv withlink-mode = "symlink"inpyproject.toml, which triggers this Windows limitation.Changes
UV_NO_SYMLINKS: "true"environment variable at the job level in.github/workflows/ci.ymlThis configuration:
"true"instead of numeric1for proper uv interpretationOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.