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
deploy: pypi.rs does not compile against zip 9.1.2 (name_for_index), release cells fail #6859
Where:deploy/rules/src/pypi.rs:78, introduced by #6789.
error[E0631]: type mismatch in function arguments
78 | .filter_map(|index| archive.name_for_index(index).map(str::to_owned))
= note: expected function signature `fn(Result<Cow<'_, str>, ZipError>) -> _`
found function signature `fn(&str) -> _`
Cause: in zip 9.1.2 (pinned in cargo-bazel-lock.json), ZipArchive::name_for_index returns Option<ZipResult<Cow<'_, str>>>, not Option<&str>. //deploy/rules:dx_deploy_tools does not compile.
Fix: in deploy/rules/src/pypi.rs:78 use archive.name_for_index(index).and_then(|name| name.ok()).map(|name| name.into_owned()). Check any other name_for_index or by_index caller against zip 9.1.2. Add or keep a unit test that opens a wheel and finds .dist-info/RECORD. Verify with bazel build //deploy/rules:dx_deploy_tools.
Activity
TrapsterDK commentedon Nov 5, 2026
Fork dry run v0.0.0-forktest.2 from main 0eaedef: https://github.com/TrapsterDK/rules_dx-forktest/actions/runs/41948967911 (tag push) and https://github.com/TrapsterDK/rules_dx-forktest/actions/runs/41949020025 (release.yml dry_run=true approve=true). Windows/macOS/Linux consumer fixes held; all five cells now fail at one error, E0631 in deploy/rules/src/pypi.rs:78 (zip name_for_index), tracked in #6859. verify/attest/dry-run/source/pins/assets were skipped. Fork release and tag deleted. Re-run after #6859 lands.
deploy/pypi: adapt name_for_index to zip 9.1 (closes devhusdk#6859) (d…