Skip to main content

gha-setup-uv-cache-glob-mismatch

Fix for GitHub Actions workflows using `astral-sh/setup-uv@v4` (or v5) failing immediately with `Error: No file matched to [**/uv.lock]` and cascading to skip every downstream job. Use when: (1) a GHA workflow shows the first uv-using job as failed and most others as skipped/cancelled after a push, despite the underlying steps being correct; (2) the failing job's log contains literally `Error: No file matched to [**/uv.lock]` right after `Run astral-sh/setup-uv@v4`; (3) the repo's `.gitignore` includes `uv.lock` (common for libraries that want consumers to resolve their own deps); (4) running `uv sync` works locally but every uv-using GHA step blows up before reaching `uv sync`. Root cause: setup-uv's cache layer defaults `cache-dependency-glob: **/uv.lock`, requires the glob to MATCH at least one tracked file, and treats a no-match as a hard failure. Fix is one line per setup-uv invocation: `cache-dependency-glob: pyproject.toml`.

Zur Installation springen

Quellinformationen

Repository
cajias/claude-skills
Letzte Quellaktivität
20. Juli 2026 um 07:29
Erkannte Sprache von SKILL.md
Englisch
Sterne
0
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.