-
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
7122: error on encountering invalid extras #12987
base: main
Are you sure you want to change the base?
Conversation
7f16323
to
24253bc
Compare
As discussed in that issue this behavior would have to change over at least a couple of releases, with an opt in, and deprecation warning, as it was considered too disruptive 5 years ago, it would be even more disruptive now. An important behavior also would be if I request |
That seems like a separate issue, maybe? (I suggest a separate issue because before this change, it would have still silently installed foo 2.0 with no error). |
Okay, so this means adding an option to I'm not sure what you mean by deprecation warning? Do you mean that the "warning" text I need to put back (if the user doesn't include |
Currently 2.0 is installed, and this behavior has existed for so long people rely on this (Hyrum's law). Which is why this would need to be changed over multiple releases. But if this PR throws an exception when there is a valid candidate (1.0) many users will (possibly rightfully) loudly complain. |
I believe users may complain either way. I would certainly not want that behavior -- I would want the error, unless I said something like "foo[bar]==1.0" or otherwise specified an older version (moving this part of the discussion back to the actual bug ticket though, see #7122 (comment) ) |
But this is contrary to analogues behavior, if you requested |
Yeah, like
Here's a recent example of adding a deprecation warning: #12918 Very informally the warning should be something like "invalid extra found, in the future this requirement will not be accepted, opt into the new behavior with option {new option}." |
Also, FYI, CI is currently broken until #12964 is merged. |
WIP: report an error and exit with code 1 upon encountering an invalid exit code.
Requires tests, at least, if this is an acceptable solution to #7122 .