Skip to content

perf: derive file maps from pinned debs - #269

Open
zbarsky-openai wants to merge 1 commit into
bazel-contrib:mainfrom
zbarsky-openai:zbarsky/apt-lazy-filemaps
Open

zbarsky-openai wants to merge 1 commit into
bazel-contrib:mainfrom
zbarsky-openai:zbarsky/apt-lazy-filemaps

Conversation

@zbarsky-openai

Copy link
Copy Markdown
Contributor

Derive dependency file maps from the exact hash-pinned Debian archives
when those maps are needed. Distribution-wide Contents indexes may be
absent from third-party repositories and do not identify the selected
package version.

Remove eager Contents downloads, parsing, and state. Keep file-map
repositories separate from package imports to preserve support for
circular Debian dependency graphs. Use hermetic bsdtar for inspection and
delete the temporary archive afterward.

This trades distribution-wide index work for inspection of the package
archives needed by the build and avoids embedding file lists in generated
module-lock repository specifications.

Depends on #266 and #267. The branch includes those prerequisites; the
file-map change is commit cab5491.

@thesayyn

Copy link
Copy Markdown
Contributor

This needs a rebase.

Inspect the exact selected Debian archive only when a dependency file
map is needed. Avoid downloading and parsing distribution-wide Contents
indexes, which third-party apt repositories may not publish and which
do not identify the selected package version. Delete the temporary
archive after inspection and remove the unused Contents parser.
@zbarsky-openai
zbarsky-openai force-pushed the zbarsky/apt-lazy-filemaps branch from cab5491 to 4e69688 Compare October 18, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants