-
Notifications
You must be signed in to change notification settings - Fork 20
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
Pin dependency versions for dune build #158
Comments
You may have an old version of the ocaml lsp library. Can you try running
before building the tlapm again? |
Okay that fixes the issue! However, is there a way to pin package versions in dune so this does not happen again? Ideally it would be one command to install all dependencies of the correct version then build the project. |
I don't know. :) I tried to find a way to fix the versions intuitively, as it is done in other programming environments, but found no good way. The versions seem to be fixed at the You can specify the version at the dune-project level; see this. But that solves the problem partially. The build will fail if your versions differ from those in the opam switch. And I found no way to install the dependencies based on the information in the dune-project file. Again, I haven't spent a lot of time on that. Maybe there is a solution; I'm just not aware of it. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm playing around with an isolated OCaml project and there has been some recent movement on package management in dune. Here are the docs: 1 2; however, it will fail on the mainline 3.16 dune release. You have to use https://preview.dune.build/ for it to work currently. So once the feature is moved into mainline we will be able to fix this issue and use declarative package management in dune. |
When running
make
on Arch Linux using OCaml 5.2.0:Bisecting reveals 6acb3cb as the commit which introduced this compilation error. It does not fail the entire compilation process for some reason.
The text was updated successfully, but these errors were encountered: