fix(template): repoint sync-with-uv at the upstream project - #349
Merged
Conversation
Every generated project pointed at `detailobsessed/sync-with-uv`, a fork that no
longer exists. `prek update` fails there with
git fetch origin HEAD --quiet --filter=blob:none --tags
exit status: 128
so a fresh project cannot update its hooks at all. This repo kept working only
because prek still had the clone cached; CI on main and the pre-push hook both
fail on it now.
The fork existed to carry `prek.toml` support ahead of upstream -- hence the
bespoke `v0.6.0-prek` pin. That support is upstream now: tsvikas/sync-with-uv
v0.6.0 ships it, and its hook's `files` pattern matches `prek.toml` directly.
Same hook id, same name, same ordering requirement (the README still asks for it
after `uv-lock`, which is what the priority-6 comment already encodes). So this
is a repoint, not a replacement.
`floatingpurr/sync-with-uv`, the original, is gone as well; tsvikas' is the
maintained continuation at 85 stars.
No new test. `test_first_commit_succeeds_with_prek_hooks` already runs a real
`prek update` inside a generated project, which is exactly what caught this: it
fails on the dead reference and passes on the new one.
Member
Author
|
This change is part of the following stack: Change managed by git-spice. |
This was referenced Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Repoints the
sync-with-uvprek hook from thedetailobsessed/sync-with-uvfork to the upstream project attsvikas/sync-with-uv, in both this repo'sprek.tomland the generatedproject/prek.toml.jinja.prek.toml—repo→https://github.com/tsvikas/sync-with-uv,rev→v0.6.0(was the fork's bespokev0.6.0-prektag)project/prek.toml.jinja— samerepochange;revstays""forprek updateto fillWhy
The fork has been deleted, so every
prek update/prek runthat had to clone it failed withgit fetchexit 128. That took outtests/test_template.py::TestIntegration::test_first_commit_succeeds_with_prek_hooks, the pre-pushpytest-covhook, and main's CI. Generated projects were broken the same way — a fresh scaffold could not complete its first commit.The fork existed because upstream did not yet read
prek.toml. It does now:prek.tomlsupport landed in upstream v0.6.0, so the fork has no remaining purpose. Upstream v0.6.0 is a drop-in match — same hook id (sync-with-uv), same hook name, and afilespattern that already coversprek.toml.Test plan
pytest tests/test_template.py::TestIntegration::test_first_commit_succeeds_with_prek_hooks— passes (12.6s); this is the test that was failing on the dead repopytest-covhook passed on the push for this branch, which is the gate that blocked the previousstack mergeGreptile Summary
This change repoints the
sync-with-uvPrek hook to its maintained upstream in the repository configuration and generated-project template. The rendered-project flow successfully installed and updated Prek hooks, and the replacementsync-with-uvhook passed. However, a freshly generated project cannot complete its initial commit on the tested Linux environment because the unchanged Lychee hook binary requires unavailable GLIBC versions.Confidence Score: 4/5
Do not merge while generated projects can fail their first commit on supported Linux environments.
The replacement sync-with-uv hook completed successfully in a rendered project's update and commit-hook flow, but the same flow reproduced a blocking Lychee runtime incompatibility.
Files Needing Attention: project/prek.toml.jinja needs attention at the Lychee revision pin on line 122; prek.toml and the sync-with-uv template entry completed successfully.
What T-Rex did
Comments Outside Diff (2)
project/prek.toml.jinja, line 122 (link)A freshly rendered project's
prek updateretainslychee-v0.24.2, whose Linux executable requiresGLIBC_2.38andGLIBC_2.39. On the tested environment, both initial-commit attempts fail before Lychee can run. Pin a Lychee release compatible with the supported glibc baseline, or run this hook in an environment with GLIBC 2.39 or later.Artifacts
Focused first-commit test output
Lychee configuration and PR diff
Prompt To Fix With AI
General comment
prek updateleaves Lychee atlychee-v0.24.2; its executable then fails at commit time because this Linux runner lacks GLIBC_2.38 and GLIBC_2.39. Both permitted commit attempts fail, despite the updated sync-with-uv hook passing.project/prek.toml.jinja:122pins the Lychee hook tolychee-v0.24.2, whose installed binary is incompatible with the runner's glibc. The[update.repos]exclusion at lines 12-13 only rejectsnightly, not this incompatible stable release.Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "fix(template): repoint sync-with-uv at t..." | Re-trigger Greptile