GoogleContainerTools / rules_distroless

Apache License 2.0
55 stars 34 forks source link

Add bzip2 support to `apt_deb_repository.bzl` #116

Open jthemphill opened 1 week ago

jthemphill commented 1 week ago

We have to download a package from https://apt-archive.postgresql.org/pub/repos/apt/dists/bookworm-pgdg-archive/main/binary-arm64/index.html, which only provides Packages.bz2 and does not provide Packages.xz or Packages.gz.

We fixed this by locally patching rules_distroless to include bz2 support here:

https://github.com/GoogleContainerTools/rules_distroless/blob/a1b5fe36fa7e1b6b6ffc97e90ccf00f6778fdb72/apt/private/apt_deb_repository.bzl#L13-L16

We added the line

            "bz2": ["bzip2", "--decompress", "--keep", "--force"],

Could we upstream this change?