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

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

Open
themacguffinman opened this issue Jul 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@themacguffinman
Copy link

themacguffinman commented Jul 18, 2024

Package index fetching logic depends on the xz command to decompress Packages.xz (see

file_types = {"xz": ["xz", "--decompress"], "gz": ["gzip", "-d"]}
)

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.

@thesayyn thesayyn added the bug Something isn't working label Jul 18, 2024
@thesayyn
Copy link
Collaborator

thesayyn commented Dec 9, 2024

Ideally we'd want to use something like zstd to decompress and not depend on host binaries, but unfortunately i don't have the time to invest into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants