Skip to content

Commit 5587458

Browse files
JonZeollaclaude
andcommitted
fix(platform): add Windows uv self-update in update task
On Windows, use `uv self update` instead of skipping the uv upgrade entirely. macOS/Linux continues to use `brew upgrade uv`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cec5b95 commit 5587458

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ tasks:
9393
update:
9494
desc: Update the project dev and runtime dependencies
9595
cmds:
96-
# Upgrade uv via brew on macOS/Linux when running locally (not CI)
97-
- '{{if and (ne .GITHUB_ACTIONS "true") (ne OS "windows")}}brew upgrade uv{{end}}'
96+
# Upgrade uv when running locally (not CI); use brew on macOS/Linux, uv self update on Windows
97+
- '{{if ne .GITHUB_ACTIONS "true"}}{{if ne OS "windows"}}brew upgrade uv{{else}}uv self update{{end}}{{end}}'
9898
- uv tool upgrade --all
9999
- pre-commit autoupdate --freeze --jobs 4
100100
# Copy the newly updated config into the project template, excluding the exclude line

{{cookiecutter.project_name}}/Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ tasks:
173173
update:
174174
desc: Update the project dev and runtime dependencies
175175
cmds:
176-
# Upgrade uv via brew on macOS/Linux when running locally (not CI)
177-
- '{{ '{{if and (ne .GITHUB_ACTIONS "true") (ne OS "windows")}}' }}brew upgrade uv{{ '{{end}}' }}'
176+
# Upgrade uv when running locally (not CI); use brew on macOS/Linux, uv self update on Windows
177+
- '{{ '{{if ne .GITHUB_ACTIONS "true"}}{{if ne OS "windows"}}' }}brew upgrade uv{{ '{{else}}' }}uv self update{{ '{{end}}{{end}}' }}'
178178
- uv tool upgrade --all
179179
- pre-commit autoupdate --freeze --jobs 4
180180
- uv lock --upgrade

0 commit comments

Comments
 (0)