asdf-ocaml icon indicating copy to clipboard operation
asdf-ocaml copied to clipboard

Install OCaml without Opam

Open smorimoto opened this issue 4 years ago • 10 comments

I don't think we need to force the installation from Opam. Because esy (and maybe others?) provides a really clean workflow for OCaml and Reason. So I think it's a good reason to rewrite all of this script to compile OCaml from source. What do you guys think about this?

CC: @vic @schutm

smorimoto avatar Sep 15 '19 09:09 smorimoto

https://github.com/esy/esy

smorimoto avatar Sep 15 '19 09:09 smorimoto

I'd be in favour to not force the installation of opam. Make opam (and/or esy) a separate plugin and let the user decide (e.g. I also use yarn in stead of npm). I do see the benefits of esy, allthough I still don't understand why it's npm based and why it's using package.json (I'm in a dual ocaml/bucklescript environment).

Best regards, --Martin

schutm avatar Sep 15 '19 18:09 schutm

It's also possible to use esy.json instead, though it's not well known...

smorimoto avatar Sep 15 '19 18:09 smorimoto

@imbsky I figured it out, yes.

schutm avatar Sep 15 '19 18:09 schutm

Anyway, I will rewrite it and push to any branch (except master). By the way, we will need to create many OCaml related plug-ins if we do this. So I think it might be better to create an organization and manage them in one place for easier management.

smorimoto avatar Sep 15 '19 18:09 smorimoto

@vic What do you think about transfer this repository?

smorimoto avatar Sep 15 '19 18:09 smorimoto

I pushed initial version to https://github.com/asdf-ocaml/asdf-ocaml.

smorimoto avatar Sep 16 '19 13:09 smorimoto

It worked on latest macOS and latest Debian.

smorimoto avatar Sep 16 '19 14:09 smorimoto

@vic What do you think about transfer this repository?

@imbsky, sure!. I see you've already pushed to asdf-ocaml/asdf-ocaml, that's fine, should I simply archive this repo and link to yours? Do you still need me to transfer it?

Do you mind sending a PR to asdf-plugins to add your repo there?

vic avatar Sep 17 '19 00:09 vic

@vic I thought it would be better to archive because exist users might update this plugin with the premise that uses Opam. There may be a bit confusion.

Do you mind sending a PR to asdf-plugins to add your repo there?

Sure!

smorimoto avatar Sep 17 '19 05:09 smorimoto