From a841d28f1af0bf47ed04f1ef50cdf841dd1933af Mon Sep 17 00:00:00 2001 From: Marcus Read Date: Fri, 24 Apr 2026 14:07:06 +0100 Subject: [PATCH] Update dep skill to offer uv update fallback options Improves resilience when updating uv. --- .../skills/dependencies-management/SKILL.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.agents/skills/dependencies-management/SKILL.md b/.agents/skills/dependencies-management/SKILL.md index 8eb9f2c..0f8ba12 100644 --- a/.agents/skills/dependencies-management/SKILL.md +++ b/.agents/skills/dependencies-management/SKILL.md @@ -14,14 +14,26 @@ Create a new branch (following the naming convention in @AGENTS.md). ### 2. Update the lock file and environment +Update `uv`: ```bash -uv self update +uv self update --token $GITHUB_TOKEN ``` -**IMPORTANT: updating `uv` MUST NOT be skipped.** If the above command fails (e.g. due to a GitHub API rate limit), install the latest `uv` via an alternative method before proceeding: +**IMPORTANT: updating `uv` MUST NOT be skipped.** If the above command fails (e.g. due to a GitHub API rate limit), try the following fallbacks in order until `uv --version` confirms the latest version is active on PATH: + +**Fallback 1 — official install script** (preferred; replaces PATH binary directly): + +```bash +curl -LsSf https://astral.sh/uv/install.sh | sh +source $HOME/.local/bin/env # refresh current shell session +uv --version # verify PATH binary is now updated +``` + +**Fallback 2 — pip** (use only if `curl` is unavailable): ```bash -pip install --upgrade uv # fallback if uv self update fails +pip install --user --upgrade uv +uv --version # check if PATH binary was updated ``` Once `uv` is up to date, run: