realworldocaml/book

opam spin hello hello-world fails

yminsky opened this issue ยท 1 comments

Here's what I got when I tried running it. This is an issue with the platform chapter.

[yminsky@viserion testing]$ opam spin hello hello-world -vvv

๐Ÿ—๏ธ  Creating a new project from hello in hello-world
opam-spin: [DEBUG] Generating hello-world/README.md
opam-spin: [DEBUG] Generating hello-world/lib/hello.mli
opam-spin: [DEBUG] Generating hello-world/.gitignore
opam-spin: [DEBUG] Generating hello-world/.ocamlformat
opam-spin: [DEBUG] Generating hello-world/bin/dune
opam-spin: [DEBUG] Generating hello-world/test/dune
opam-spin: [DEBUG] Generating hello-world/lib/dune
opam-spin: [DEBUG] Generating hello-world/test/hello_test.ml
opam-spin: [DEBUG] Generating hello-world/dune-project
opam-spin: [DEBUG] Generating hello-world/dune
opam-spin: [DEBUG] Generating hello-world/bin/main.ml
opam-spin: [DEBUG] Generating hello-world/bin/main.mli
opam-spin: [DEBUG] Generating hello-world/Makefile
opam-spin: [DEBUG] Generating hello-world/LICENSE
opam-spin: [DEBUG] Generating hello-world/hello.opam
opam-spin: [DEBUG] Generating hello-world/lib/hello.ml
Done!

๐ŸŽ  Installing packages globally. This might take a couple minutes.
opam-spin: [DEBUG] Running make deps
opam install -y dune-release ocamlformat utop ocaml-lsp-server
[NOTE] Package ocaml-lsp-server is already installed (current version is 1.9.1).
[NOTE] Package utop is already installed (current version is 2.9.0).
[NOTE] Package ocamlformat is already installed (current version is 0.20.1).
[NOTE] Package dune-release is already installed (current version is 1.5.2).
opam install --deps-only --with-test --with-doc -y .
Nothing to do.
# Run eval $(opam env) to update the current shell environment
opam-spin: [DEBUG] Running make build
opam exec -- dune build --root .
File "test/hello_test.ml", line 1:
Error (warning 70 [missing-mli]): Cannot find interface file.
make: *** [Makefile:33: build] Error 1
opam-spin: [ERROR] The template generation failed:
The command make build did not run successfully: exited with code 2
avsm commented

fixed in #3527