-
Notifications
You must be signed in to change notification settings - Fork 2.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
I'm not really sure of what I fixed #1700
Conversation
Is there longer debug output? Seems like the issue would be the package markers on your dependencies, not your specific pyproject.toml file. |
This is the full logging output of the unpatched version (on a different machine).
|
@@ -614,6 +614,12 @@ def without_extras(self): | |||
|
|||
return MarkerUnion(*new_markers) | |||
|
|||
def is_any(self): # type: () -> bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I fixed/added this in 1.0.0b9
can you try again on the latest release?
PR: #1650
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying immediately!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to re-lock as the previous versions created issues with the lockfile because of that (as opposed to calling update).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working perfectly! Thanks! :D
Closed as this is a duplicate of #1650. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi!
So... While running
poetry update
on this pyproject.toml file, I got an error:After trying multiple things, like updating to the latest preview version and using Poetry directly from the git repository, I decided to try to debug Poetry itself to see what was causing the error.
After snooping a bit around, I found that there was a
MarkerUnion
object that was returningFalse
on the.is_any()
method call, even if both the Markers inside the Union returnedTrue
on the.is_any()
calls; I changed it to returnTrue
if all the Markers contained in theMarkerUnion
are any.This seems to have solved by problem, but I still have no idea of what the problem actually was or of what a Marker is.
If this is actually the correct fix, there may be more Markers in the
poetry/version/markers.py
file that need to be fixed, as I only had time to solve this specific bug.