-
-
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
Issue with VCS installs in 2024.1.0
-- resolver trying to resolve vcs as regular dependency
#6266
Comments
Seeing what I assume is the the same issue with this dependency in latest pipenv:
|
@fredcohen-aa |
I think this is going to be challenging issue as we move forward with pip >= 24.1.2 it appears to be more strict about some things such as version specifiers. For example -- I am unable to lock the parent package django-trench successfully from git/vcs, sometimes it did work but always had a null ref, and adding additional vcs it failed it. But I forked the package and tried changing the version like so: matteius/django-trench@821b421 Now it just works again 🤔 |
@fredcohen-aa please open a different issue report for what you are seeing with even more details than you provide above. |
Issue #6273 opened |
Analysis for Issue #6266: Analysis of Pipenv Issue #62661. Problem Summary: The core problem is that Pipenv's resolver in version 2024.1.0 mistakenly attempts to resolve VCS dependencies as regular dependencies, leading to a 2. Comment Discussion Analysis:
3. Proposed Resolution: The issue seems to be rooted in how Pipenv constructs requirement strings for VCS dependencies. Pipenv needs to ensure that VCS URLs are treated differently from standard package names and versions. This includes:
Potential Code Changes:
4. Code Snippet: def dependency_as_pip_install_line(
# ... existing parameters
):
# ... existing code ...
elif vcs and vcs in dep: # VCS Requirements
# ... (existing logic for constructing git_req) ...
# Ensure VCS URL is preserved
if include_markers and dep.get("markers"):
line.append(f"{git_req}; {dep['markers']}") # append markers with semicolon
else:
line.append(git_req) # append the unmodified VCS URL string
# ... remaining code ... 5. Additional Steps/Investigations:
By addressing these points, Pipenv can ensure that VCS dependencies are correctly handled and prevent the |
Fixed by: #6276 |
The text was updated successfully, but these errors were encountered: