Skip to content
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

Simplify init step for empty projects #138

Open
samoht opened this issue Nov 11, 2022 · 0 comments
Open

Simplify init step for empty projects #138

samoht opened this issue Nov 11, 2022 · 0 comments

Comments

@samoht
Copy link
Contributor

samoht commented Nov 11, 2022

When you want to create a new project, you need to have OCaml installed in your switch:

❯ opam switch create . --empty
❯ ocaml-platform
ocaml-platform: [ERROR] No compiler installed in your current switch.
❯ opam install ocaml
[...]
Done.
❯ ocaml-platform
[...]
* Success.

That might be useful at one point to automatically run opam install ocaml if the switch is empty (and eventually, run opam switch create . --empty if there is no local opam switch present yet - it's clearly a bit tricky to get that one right, so need to design this feature first and decide if that's a good idea or not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant