Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add bzip2 support to apt_deb_repository.bzl #127

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apt/private/apt_deb_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ load(":version_constraint.bzl", "version_constraint")
def _fetch_package_index(rctx, url, dist, comp, arch, integrity):
target_triple = "{dist}/{comp}/{arch}".format(dist = dist, comp = comp, arch = arch)

# See https://linux.die.net/man/1/xz and https://linux.die.net/man/1/gzip
# See https://linux.die.net/man/1/xz , https://linux.die.net/man/1/gzip , and https://linux.die.net/man/1/bzip2
# --keep -> keep the original file (Bazel might be still committing the output to the cache)
# --force -> overwrite the output if it exists
# --decompress -> decompress
supported_extensions = {
"xz": ["xz", "--decompress", "--keep", "--force"],
"gz": ["gzip", "--decompress", "--keep", "--force"],
"bz2": ["bzip2", "--decompress", "--keep", "--force"],
}

failed_attempts = []
Expand Down
Loading