-
Notifications
You must be signed in to change notification settings - Fork 411
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
Installation of a package fails in local opam switch with dune install
#6944
Comments
Did you meant to open this issue in dune's bugtracker instead? I'm not sure what this has to do with opam. To me this seems like an expected behaviour of dune (even if i personally don't agree with it), aka. "dune commands by default will always look for the upper most dune project instead of the current directory. This behaviour can be changed using If there was a Do you want me to move this issue to the dune bugtracker? |
Honestly, I didn't know whether I should post the issue here or in the Dune issue tracker 😅 I had a few discussion with @bobot about it, and it seems that it is indeed the expected behavior. I would say that I do not really agree with it neither. It is good to know that it will be tested in Opam repository in the future anyway! 👍 |
I moved it to the dune repository to let the dune devs know of the discussion and if they want to reopen it in case they want to change this behaviour in the future. |
When one uses directly
dune install
as an installation command in anopam
file, installing this package in a local switch containing adune project
file does not apply the command on the right directory(?).Steps to reproduce:
Result:
By adding
--root .
to installation command it seems to work. But I'd like to know if it is a workaround or a solution (because what is explained before is indeed not supposed to work). It has been detected with the Frama-C package:https://git.frama-c.com/pub/frama-c/-/issues/2645
It seems that there are (related?) problems with other packages, say for example haxe:
https://git.frama-c.com/pub/frama-c/-/issues/2645#note_207676
The text was updated successfully, but these errors were encountered: