astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
15.5k stars 456 forks source link

uv doesn't correctly checkout Git dependencies with Git LFS assets #3312

Open dexterduck opened 3 months ago

dexterduck commented 3 months ago

I'm working on a project that depends on a private Git repository where some of the project's assets are stored in Git LFS (in this case Pytorch models).

My project uses Rye as its package manager. When configured to use Pip, everything works as expected. When configured to use uv, the LFS objects aren't checked out correctly.

I assume a blocker for uv supporting LFS is the fact that the git2 crate also doesn't support LFS (rust-lang/git2-rs#956) and there's no indication support will be added in the future.

Platform: Ubuntu 22.04 uv version: 0.1.39

vfilter commented 1 month ago

Same issue here. Makes uv unfortunately unusable for us since we have lfs in a private github repo.

zanieb commented 1 month ago

We actually stopped using the git2 crate so we may be able to support this easier now? cc @ibraheemdev