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 · 0 comments
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
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