-
Notifications
You must be signed in to change notification settings - Fork 358
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
Make sure that recursive dependencies are not reflexive #4804
Conversation
bcf27c4
to
c313e45
Compare
Thanks! fixes #4446 |
The tests fail and it might be related. Could you have a look at them? e.g.
|
c313e45
to
4e008f8
Compare
My guess is that some functions rely on the reflexive behavior (for example, in order to calculate package removal). I changed it so that the non-reflexive behavior only occurs in the |
Thanks! Indeed this was inconsistent. A note of caution however: this is incorrect with multiple packages, e.g. |
I guess this is true, although it depends a bit on how one reads the documentation of The only way I can think of fixing this is to run a separate query for each of the requested atoms and then take the union of the results. Would that be acceptable, or is that too slow? |
Hm, that doc probably needs some effort then. The idea is that It's not a very common pattern, so I guess the solution you propose would be fine, dependency queries are not that expensive; and I can't think of an other one :) |
Superseded by #5075 which supports the |
opam list --recursive --recursive --required-by=package
is reflexive (it shows the package itself). This does not seem correct, since a package does not require itself. Note that without--recursive
, the command is not reflexive.