Hi,
I try to build a project template (1) that uses Dune and Opam. After circa 5 minutes of my PC fans spinning full steam (git seem to be really busy), Opam has placed a _opam folder in my project that is over 5 GB in size! So basically my question is: Is there a way those deps can be installed globally in order to save space and time?
[1]: GitHub - melange-re/melange-opam-template: A simple project template using Melange with opam
here is the opam command that seams to install all the stuff:
opam switch create 4.14.1 -y --deps-only
While searching for solutions I stumbled over the following articles:
-
So in one article (2) they where talking about --set-switch in order to install globally:
opam env --switch=4.06.1 --set-switch
[2]: - Opam command for a local switch - How to use it -
The official Dokumentation talks about
opam switch set
but that doesn’t work either.
I think one reason why I struggle is because I don’t really understand the concept of switches.
Ok, the other problem is that I cannot meet the requirements. Here is the error:
dune build @react @node
File "dune-project", line 1, characters 11-14:
1 | (lang dune 3.8)
^^^
Error: Version 3.8 of the dune language is not supported.
Supported versions of this extension in version
I tried to install dune 3.8 manually but I how can I use it here?
Sorry for sounding so complicated, but nothing seems to work.