-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Installing from git repo breaks when upgrading from version 21.2.4 to 21.3 #10652
Comments
This should be reported to Python.Net, their build system likely has an issue. |
This is provably false. From pip's documentation site:
|
|
I have almost the same issue. Seems like our company git server (Bitbucket Server) doesn't behave correctly with the partial clone functionality. Using pip 21.3.1, when I do:
I get:
This works fine with pip 21.2.4, which doesn't use the partial clone. Similarly, I can reproduce the issue at the command prompt using git clone directly (i.e. works with full clone and doesn't with partial). So it's definitely an issue with the partial clone. Bitbucket Cloud doesn't support partial clones, but it at least handles this gracefully. e.g.
Git client version is 2.33.1.windows.1. It's possible that this is a git problem but partial clone works for Github.com. e.g.:
As @filmor says, the first issue is that it's not respecting the documentation (i.e. only partial clone when a revision is specified). The second is that not all git servers behave correctly for this functionality, users often do not have control over those git servers and the workaround to downgrade pip to <21.3 is far from obvious. For this second issue, I'm not sure what pip can do except provide an option to disable the partial clone functionality. |
Description
Installing the Python.NET package from GitHub works fine with pip version 21.2.4, but breaks after upgrading to version 21.3.
This was observed using Python version 3.9.7, but the behavior is the same for version 3.10.0.
The error message is:
Expected behavior
Installing packages from git repos should not break after upgrading pip.
pip version
21.3
Python version
3.9.7
OS
Windows
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: