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

Smudge errors when installing a package from git #2000

Open
2 tasks done
lminer opened this issue Sep 6, 2024 · 7 comments
Open
2 tasks done

Smudge errors when installing a package from git #2000

lminer opened this issue Sep 6, 2024 · 7 comments
Labels
🐞 bug Something isn't working

Comments

@lminer
Copy link

lminer commented Sep 6, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

NA

Issue description

I'm trying to add a private package that I install directly from github. The install is failing with a git-lfs error. I have no such problems when I try to install either via pip, or when I try to clone the repository. My pyproject.toml has a line something like this:

[tool.pixi.pypi-dependencies]
myrepo = { git = "ssh://git@github.com/foo/myrepo.git" }

The error is this:

├─▶ Failed to download and build `foo @ ssh://git@github.com/foo/myrepo.git@<commit_hash>`
  ├─▶ Git operation failed
  ╰─▶ process didn't exit successfully: `git reset --hard <commit_hash>` (exit status: 128)
      --- stderr
      Downloading foo/<path>/bar.tar.zst (1.4 MB)
      Error downloading object: foo/<path>/bar.tar.zst (<object_hash>): Smudge error: Error downloading foo/<path>/bar.tar.zst (<object_hash>): error transferring
      "<object_hash>": [0] remote missing object <object_hash>

      Errors logged to '<path_to_cache>/git-v0/checkouts/<checkout_id>/<commit_hash>/.git/lfs/logs/<log_file>.log'.
      Use `git lfs logs last` to view the log.
      error: external filter 'git-lfs filter-process' failed
      fatal: foo/<path>/bar.tar.zst: smudge filter lfs failed

Expected behavior

I expect it to successfully install as it does with pip and with conda/mamba.

@lminer lminer added the 🐞 bug Something isn't working label Sep 6, 2024
@tdejager
Copy link
Contributor

tdejager commented Sep 7, 2024

Would it be possible to get a reproducer for this?

@lminer
Copy link
Author

lminer commented Sep 7, 2024

@tdejager Sure. I just got one working. I made a repo that includes another repo in its pypi dependencies: https://github.com/lminer/pixilfsbug. The other repo is at https://github.com/lminer/lfsbug. If you clone pixilfsbug and then run pixi install, you should get the same error as above.

@tdejager
Copy link
Contributor

tdejager commented Sep 8, 2024

Great thank you! Will investigate this next week :)

@lminer
Copy link
Author

lminer commented Sep 16, 2024

Looks like UV is responsible for this issue and it is known: astral-sh/uv#3312

@tdejager
Copy link
Contributor

Thanks, let's track and update accordingly.

@xela-95
Copy link
Contributor

xela-95 commented Sep 30, 2024

Hi, I'm having the same issue. Is there any update on this?

@ruben-arts
Copy link
Contributor

@xela-95 Not anymore, uv also doesn't seem to have fixed it yet

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

4 participants