-
Notifications
You must be signed in to change notification settings - Fork 81
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
MPR#5547: Enable the "-use-ocamlfind" option by default #214
Comments
To summarize: at the time where we first attempted to make Now that we have had quite a few releases with the There is also the question of whether we think that it is a good change to make. One thing I understood while discussing the issues with my colleagues at the time is that we should be very, very careful about changing a default (it is a more disruptive change that one would expect), so it should only be done when there is a very strong reason to do so. I happen to think, in the context of |
On my side I would nowadays be for the change. All the automated invocation I propagated in the eco-system (through For sure there will be a break here or there but I don't expect them to be that widespread. We should just make sure the error message is good when you I think it's really nice for end-users to just have that |
I feel that there is some consensus on changing the default, but I don't want to do this for 0.11, we have enough potentially-breaking stuff to deal with. |
Regarding this there should be a discussion about whether |
As a dependency, there is the cost that no-ocamlfind people would frown on that -- and, again, it's easy to write a clear error message when an ocamlbuild command relies on |
Is it possible for ocamlbuild to register as 2 packages in opam? One would be the default one and would depend on ocamlfind, and the other would be for experts ('ocamlbuild_no_ocamlfind') and not depend on it? It would be nice if a command line switch could emulate this opam behavior for one package (e.g. building with --no-ocamlfind would remove the dependency on ocamlfind), but the more primitive 2 package solution would do the trick as well. |
I think that would work, but I'm not sure it is worth the hassle from a packaging/release point of view. Plus all the no-ocamlfind users would have to update their own opam files to use (Another argument for not having the dependency is that most other packages out there do depend on ocamlfind, at least at build time, so it is super-likely that any "normal user" will have ocamlfind installed anyway. I think the situation is more likely to occur when super-user experiment with OCaml beta releases, or custom switches, or weird stuff, in which case maybe a clear error message is enough UX.) |
Is there a proof of existence of |
I mean if I can tell a newcomer to simply |
PR transferred from https://caml.inria.fr/mantis/view.php?id=5547
[original reporter: @gasche ]
Ocamlfind is everywhere these days and I frequently forget to add the
-use-ocamlfind
knob to enable the niftypackage(foo)
syntax. I'm not sure why it was enabled by default (maybe there was a conflict in semantics somewhere) but I would like it if it became the standard (with why not an opt-out option-no-ocamlfind
).It would be useful in particular when used with Oasis, which currently has the limitation that we can't pass command-line parameters to the ocamlbuild invocation directly. That's a bug that will eventually be fixed, but there may be similar situations present in other tools.
See also the (very long) discussion in the Mantis PR.
The text was updated successfully, but these errors were encountered: