-
Notifications
You must be signed in to change notification settings - Fork 36
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
Initializing a project from flake template fails #116
Comments
You also need to have an actual OCaml project in that directory as well, so that opam-nix has something to build. If you don't have any yet and want to initialize one, try: nix-shell -p dune_3 --run "dune init proj ocaml_test ." But be aware that for now (due to #115) you also have to disable echo "(subst disabled)" >> dune-project |
It would be nice if there was a default where if a project doesn't yet exist you still get a devShell with the tools to create a project, similar to crane. Perhaps I should reference this in a new issue, though. |
I think it would be better addressed in documentation. You don't need much tooling besides some version of dune, and it doesn't make sense (at least to me) for |
I think my only argument would be discover-ability, but documented is better than not 🙂 |
Describe the bug
A clear and concise description of what the bug is.
I just wanted to start a new ocaml project but following the guide in the readme throws an error.
To Reproduce
Steps to reproduce the behavior.
nix flake init -t github:tweag/opam-nix git init . git add -A nix develop
Expected behavior
A clear and concise description of what you expected to happen.
Expected to enter a devShell as stated in the article in the readme for getting started
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: