Skip to content

Commit 73e4a6a

Browse files
committed
ci(docs): use unsafe-best-match index strategy for docs install
The new UV_EXCLUDE_NEWER guard combined with the PyTorch CPU extra-index caused uv to pin fsspec to an older mirrored version that conflicts with lightning[all]'s version range, breaking docs-build resolution.
1 parent 3583026 commit 73e4a6a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docs-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,15 @@ jobs:
105105
106106
- name: Install package & dependencies
107107
timeout-minutes: 20
108+
# `unsafe-best-match` lets uv consider all indexes when resolving a package,
109+
# not just the first one it's found on. Required here because the PyTorch CPU
110+
# extra-index mirrors an older `fsspec` that conflicts with `lightning[all]`'s
111+
# version range under `UV_EXCLUDE_NEWER`; without this flag uv refuses to fall
112+
# back to PyPI for a newer compatible version.
108113
run: |
109114
uv pip install .[all] -U -r requirements/${{ matrix.pkg-name }}/docs.txt \
110-
-f ${PYPI_LOCAL_DIR} --extra-index-url="${TORCH_URL}"
115+
-f ${PYPI_LOCAL_DIR} --extra-index-url="${TORCH_URL}" \
116+
--index-strategy unsafe-best-match
111117
uv pip list
112118
113119
- name: Install req. for Notebooks/tutorials

0 commit comments

Comments
 (0)