Is it possible to make an opam “sandbox”?

喜欢而已 提交于 2019-12-06 08:25:20

问题


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


回答1:


In opam you can have several 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


来源:https://stackoverflow.com/questions/27640897/is-it-possible-to-make-an-opam-sandbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!