-
Notifications
You must be signed in to change notification settings - Fork 359
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
opam search --depends-on/required-by can be quite misleading #3943
Comments
I'd like something like this as well. Most of the t ime, I'm only interested in the latest version of packages. |
To clarify this, could you describe the usecases you're putting this search to? We need to define "latest version" slightly more precisely, since it also includes package versions that are eliminated by the ocaml compiler version, architecture and os constraints. So in this case, do you want to eliminate reverse dependencies that are not at their latest versions irrespective of installability, or to find the latest set of fresh reverse dependencies that are installable in the current switch. For a CI revdeps usecase, filtering through the results of the existing command and then testing local installability of the resulting package set is what works. It would be useful to understand what other uses this feature might need. |
Both. The
|
Myself, I'm interested in properties that hold at the tip of the project. I'm assuming that the highest version is the one that is the closest to the tip of the project. For instance, this morning I was asking myself how many projects are using ocaml-migrate-parsetree directly and are not using ppxlib. For that, I was hoping to take the output of |
I think this was closed by #5375 |
opam search
makes it easy to make wrong inferences. For example:odoc
1.4.1 no longer depends onbos
, but earlier versions did.Also since since I'm moving to at least 4.03 and/or 4.05 I'm trying to get rid of my
result
package dependencies. But I'm often surprised by the unioning behaviour of--required-by
:It would be nice to have an option, say
--latest
that--depends-on PKG
only show packages whose latest version depends on any version of PKG.--required-by PKG
only show packages that are required by thethe latest version of
PKG
(I knowPKG.X.X.X
does that but then I have to remember the latest version number of my packages and I do not, butopam
does).The text was updated successfully, but these errors were encountered: