Skip to content

Support xz compressed packages#5513

Merged
charliermarsh merged 6 commits intoastral-sh:mainfrom
krishnan-chandra:support-xz-compressed-packages
Jul 28, 2024
Merged

Support xz compressed packages#5513
charliermarsh merged 6 commits intoastral-sh:mainfrom
krishnan-chandra:support-xz-compressed-packages

Conversation

@krishnan-chandra
Copy link
Copy Markdown
Contributor

Summary

Closes #2187.

The xz backdoor is still fairly recent, but luckily the Rust xz2 crate bundles version 5.2.5 of the C xz package, which is before the backdoor was introduced.

It's worth noting that a security risk still exists if you have a compromised version of xz installed on your system, but that risk is not introduced by uv or the Rust packages in general.

Test Plan

Tried installing the package mentioned in the linked issue: python-apt @ https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/python-apt/2.7.6/python-apt_2.7.6.tar.xz

(Note that this will only work on Ubuntu - I tried on a Mac and while the archive was extracted properly, the package did not install because of some missing files)

@charliermarsh charliermarsh self-assigned this Jul 28, 2024
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Jul 28, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) July 28, 2024 18:27
@charliermarsh
Copy link
Copy Markdown
Member

Nice PR.

@charliermarsh charliermarsh merged commit 4b41284 into astral-sh:main Jul 28, 2024
@krishnan-chandra krishnan-chandra deleted the support-xz-compressed-packages branch July 28, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Compatibility with a specification or another tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support xz compressed source packages

2 participants