Files
hermes-agent/tests
BearHuddleston de8947f0da fix(pm): drop uv cache links the prune left without a target
Staging now ships uv's wheel links as links, but the prune removes wheel
entries only under wheels-v*/pypi and sdists-v*/pypi. URL, git and
named-index wheels sit a hash directory deeper, so when the lock drops
one of them the prune deletes its archive-v0 bucket and leaves the link
pointing at nothing. publish_prepared's link check then rejects the
payload. Before links were kept, staging copied such an entry as a
self-contained directory, so the same prune left nothing dangling.

uv.lock has three such sources today (kittentts by URL, misaki and
psutil from git). With the pinned uv 0.13.5, a wheel installed from a
direct URL and then dropped from the lock reproduces it: stage, prune,
then the link check fails on wheels-v7/url/<hash>/gone-dep/<version>.

Finish the prune by removing links with no target in the wheel and
sdist families. The sweep does not depend on the layout. It also
repairs CI's rolling cache, which the setup-pm post-job runs through the
same prune.

Reported in review by @unsupportedpastels, whose regression test this
extends with a link the lock still resolves.
2026-11-03 01:15:57 +00:00
..
…
…
…