bazel-contrib/rules_distroless

Fails to natively decompress xz indices on macOS ("unable to download package index")

Aberta

#65 aberto em 18 de jul. de 2024

 (1 comentário) (0 reação) (0 responsável)Starlark (70 forks)auto 404
bughelp wanted

Métricas do repositório

Stars
 (97 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Package index fetching logic depends on the xz command to decompress Packages.xz (see https://github.com/GoogleContainerTools/rules_distroless/blob/9da4ee521ab077fbd37744cb1acdad9e0f44b349/apt/private/package_index.bzl#L8)

macOS doesn't natively have an xz command, the native way to decompress xz files is surprisingly gzip -d Packages.xz (gzip in macOS is a non-standard Apple variant).

It's fairly easy to workaround by installing xz (brew install xz) so the xz command works. Ideally rules_distroless should use the native macOS command automatically but documenting this macOS dependency in the README would be helpful too.

Guia do colaborador