Can you make a sandbox opam?

I have two ocaml projects that are compiled with ocaml 4.02.1. Is there a way to create separate opam installations for each project instead of having both projects set their dependencies in the global opam switch 4.02.1?

+3


source to share


1 answer


As opam

you may have multiple installations of the same compiler:

opam switch -A 4.02.1 proj1
opam switch -A 4.02.1 proj2

      



will create two separate independent stacks for each project. You may also find these commands useful:

opam switch export
opam switch import

      

+6


source







All Articles