bazel-contrib/rules_distroless

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

オープン

#65 opened on 2024/07/18

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Starlark (70 件のフォーク)auto 404
bughelp wanted

Repository metrics

Stars
 (97 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド