From cb0eef38b29d3b3d89630b6e49b520d71148c8c9 Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Fri, 26 Jun 2026 10:11:51 +0000 Subject: [PATCH] docs: disable uv cache (nothing to cache) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docs build installs uv only to put it on PATH; build-command owns dependency install. With no requirements/pyproject/uv.lock to key on, setup-uv's default cache emitted a "cache will never get invalidated" warning every run. Set enable-cache: false. (setup-uv stays pinned to the full v8.2.0 — it uses immutable releases, so there's no floating @v8 major tag to track.) Co-Authored-By: Claude Opus 4.8 --- .github/workflows/docs.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 35f0f78..f6de253 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -53,7 +53,13 @@ jobs: # python-version input it only puts uv on PATH, honouring a committed # .python-version if the project has one — a no-op for npx-only repos. - name: Install uv - uses: astral-sh/setup-uv@v8.2.0 + uses: astral-sh/setup-uv@v8.2.0 # full version: setup-uv uses immutable releases (no floating @v8) + with: + # No project deps to cache here: build-command owns dependency install + # (npx/make/tox/uv) and there are no requirements/pyproject/uv.lock files to + # key the cache on — which otherwise emits a "cache will never get + # invalidated" warning every build. uv's own download is small, so skip it. + enable-cache: false # Version name = the site sub-dir this build is served at, and the BASE_URL it # must be built with. pr- for PRs; otherwise the ref name (default branch or