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`.

跳到安装

来源信息

仓库
cajias/claude-skills
最近来源活动
2026年7月20日 07:29
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。