-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Struggling with installs from git -- unearth.errors.UnpackError: fatal: couldn't find remote ref unknown
#3107
Comments
Seems like the resolution doesn't work correctly, despite the aforementioned specification:
Not sure where this |
I managed to find the commit that introduced the issue: 865fc62, this line: pin = pin.copy_with(min(requirements[identifier], key=self.requirement_preference)) copies the |
@Viicos, nice work. Great digging. |
unearth.errors.UnpackError: fatal: couldn't find remote ref unknown
Sorry for that, how can I simply reproduce this issue? I tried with the following [project]
name = "myproject"
requires-python = ">=3.11"
dependencies = [
"pydantic-extra-types @ git+https://github.com/pydantic/pydantic-extra-types.git@main",
]
[tool.pdm]
distribution = false And couldn't reproduce with consecutive
Yeah but the pdm/src/pdm/models/candidates.py Lines 192 to 197 in 37e5386
|
From my debugging last night
It's a bit hard to have a reproducible example. Your pyproject is good (I tried with the same one). You need to first run |
I've tried that, but it shows:
Even can't reproduce with pydantic full repo and same steps as workflow |
Did you turn on |
I don't believe so. I created a repro repository: https://github.com/Viicos/pdm-218-issue. I realized it's even harder to reproduce. I believe the issue happens if you:
|
…: fatal: couldn't find remote ref unknown` Fixes #3107 Signed-off-by: Frost Ming <me@frostming.com>
Thanks, that is helpful, will fix it soon. |
Hey folks, thanks for your awesome work on this package.
We've upgraded to v2.18.0, and are struggling with installs for the latest versions of packages from
git
. Specifically, we're getting this error:unearth.errors.UnpackError: fatal: couldn't find remote ref unknown
You can see the full repro here: https://github.com/pydantic/pydantic/actions/runs/10392350698/job/28777332850?pr=10134
In our
pyproject.toml
file, we have dependencies listed as follows, which seems to be causing the problem.I've opened pydantic/pydantic#10134 to try to support this new pdm version, but am a bit stumped with the above error. Any advice / help is greatly appreciated!
@frostming, I'm guessing you might have some ideas?
The text was updated successfully, but these errors were encountered: