Skip to content

fix: inspect debs with hermetic bsdtar - #266

Merged
thesayyn merged 1 commit into
bazel-contrib:mainfrom
zbarsky-openai:zbarsky/apt-hermetic-archive
Sep 14, 2026
Merged

thesayyn merged 1 commit into
bazel-contrib:mainfrom
zbarsky-openai:zbarsky/apt-hermetic-archive

Conversation

@zbarsky-openai

Copy link
Copy Markdown
Contributor

Use tar.bzl's pinned host bsdtar for repository-time Debian archive
inspection and extraction. Repository rules run before toolchain
resolution, so select the same platform-specific binary through the
existing toolchain repositories.

Discover data.tar's compression format instead of assuming data.tar.xz.
This handles Zstandard packages without requiring host tar or zstd.
Remove directory exclusions that suppress file discovery with BSD tar,
and fail explicitly when inspection or extraction fails.

Use tar.bzl's pinned host binary during repository evaluation. Discover
the data archive instead of assuming XZ compression, so Zstandard debs
work without host tar or zstd. Remove directory exclusions that suppress
file discovery with BSD tar, and report inspection/extraction failures.
@thesayyn
thesayyn merged commit abed47e into bazel-contrib:main Sep 14, 2026
13 checks passed
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