You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hosted and vendored modes cannot deliver a patched release that publishes only platform wheels: no way to consume one patched wheel per platform tag #2195
A PyPI release that publishes only platform wheels cannot be delivered patched in hosted or vendored mode:
hosted withholds the redirect with redirect_pypi_platform_wheel (crates/socket-patch-core/src/patch/redirect/mod.rs:753);
vendored pins the lock to one platform and reports vendor_platform_locked (crates/socket-patch-core/src/vendor/pypi.rs:2139).
Both behaviours are correct for a single patched wheel (#701, #932 and #1048 fixed the silent single-platform pin). The gap is that there is no way to consume a SET of patched wheels for one release.
Why this matters
Packages with compiled extensions often publish no universal wheel at all (pillow: 87 files in 12.3.0, none -none-any). When the patch service can provide a patched wheel for each platform tag of the release, a cross-platform lock entry could list all of them, the way the upstream lock entry does.
Suggested direction
Let a hosted or vendored PyPI reference carry one patched wheel per upstream wheel of the release (same tags, own hashes) and rewrite the lock entry to that full set. Withhold, as today, when the set does not cover every wheel the lock entry lists.
[agent] Looked at what this needs. Not started: it should follow #2273, and it needs a matching change in Socket's backend.
Where things stand (checked 2026-12-01)
No live PyPI patch was made from a platform wheel yet. Every record the patch service has for PyPI is for a pure wheel (…-none-any-whl) or an sdist (tar-gz); about ten releases have two records.
A patched build for each platform wheel of a release, one record per upstream wheel.
CLI, once those exist
Hosted: rewrite a lock entry to the whole set (same tags, own hashes) in the formats that list a release's files (uv.lock, poetry.lock, pdm.lock, pylock.toml, hashed requirements).
Vendored: commit one patched wheel per locked platform, instead of vendor_platform_locked.
This is the PyPI counterpart of #2273 and changes the same redirect code (#2273 touches about 3,200 lines of it), so I would build it on top of #2273 once that lands and reuse its rules for partial coverage.
The agent-mode half, picking the record of the wheel that is installed, is #2194; the fix is in #2409.
Activity
mikolalysenko commentedon Dec 1, 2026
[agent] Looked at what this needs. Not started: it should follow #2273, and it needs a matching change in Socket's backend.
Where things stand (checked 2026-12-01)
…-none-any-whl) or an sdist (tar-gz); about ten releases have two records.redirect_pypi_platform_wheel), and for a release with a wheel record and an sdist record it writes both to the one lock entry and the last one stays (A release variant beside a recorded sibling is an upgrade on every scan: "1 package has a newer patch available" and updates[] never clear, and a hosted re-scan reports a rewrite it does not make #2370 describes that).Needs a matching change in Socket's backend
CLI, once those exist
uv.lock,poetry.lock,pdm.lock,pylock.toml, hashed requirements).vendor_platform_locked.This is the PyPI counterpart of #2273 and changes the same redirect code (#2273 touches about 3,200 lines of it), so I would build it on top of #2273 once that lands and reuse its rules for partial coverage.
The agent-mode half, picking the record of the wheel that is installed, is #2194; the fix is in #2409.
Generated by Claude Code