-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Local wheel Installation failure due to path removal in Pipfile.lock #5542
Comments
Have you tried the main branch? |
Ok to my surprise, this appears to be an issue even on main. I thought this would have fixed it: #5523 |
I see the issue -- you named it |
I can check tomorrow, thanks for the quick responses! |
New version has been released so you can try it from pypi install. |
Looks resolved on my end! |
Would there be need to add a test for coverage or did the PR that fixed the issue include enough coverage wrt this issue? |
There was a test scenario added for |
Non trivial to add a test for path because path is relative and by the time the test runner invokes and makes temp directories, its impossible to know the relative pathing to the test wheel for install and actually have it resolve via lock, without making an absolute file path which we already have a test for. |
Issue description
This issue was introduced within the PR #5464
The lines:
forces the category to be resolved latter. This strips the
path
key for local packages which does not get reintroduced into the lockfile later. This causes acannot resolve package error
during installation despite Pipfile.lock being created.i.e. the Pipfile.lock for the
<LOCAL_PACKAGE>
loses the path.becomes
Expected result
Pipfile.lock should maintain the
path
key for locally installed packages.Actual result
Steps to replicate
e.g.
pipenv install
$ pipenv --support
Pipenv version:
'2022.11.30'
# NOTE: Tested around 2022.11.11 and 2022.11.5 to identify.Pipenv location:
'/usr/local/lib/python3.10/site-packages/pipenv'
Python location:
'/usr/local/opt/python@3.10/bin/python3.10'
OS Name:
'posix'
User pip version:
'22.3'
user Python installations found:
3.10.8
:/usr/local/bin/python3
3.9.16
:/usr/local/bin/python3.9
3.8.16
:/usr/local/bin/python3.8
Limited output...
The text was updated successfully, but these errors were encountered: