Closed nekketsuuu closed 4 years ago
You're using the Head of Bonsai, but some fairly old versions of its dependencies. You can use the version of Bonsai on opam without issue, but if you want to build the tip-of-tree on github, you'll need to use the latest versions of its dependencies (also on github). You can do that easily by adding the janestreet opam-repository to your opam switch: https://github.com/janestreet/opam-repository for your opam switch
Thanks for your explanation!
Then, how about adding version constraints to dependencies written in the opam file? https://github.com/janestreet/bonsai/blob/b6c1a0e7a2f1e9df829383a3cd708c950502856e/bonsai.opam#L12-L21
If so, we newcomers can notice that we are using the old dependencies when building the example according to https://github.com/janestreet/bonsai/blob/b6c1a0e7a2f1e9df829383a3cd708c950502856e/docs/getting_started/open_source/hello_world.mdx.
If version requirements were added, then opam would just say "no version found" for all the packages; which isn't much more helpful...
We're looking at ways to detect this and issue a more clear warning; thanks for bringing this up though!
I followed the "Getting Started" tutorial to build examples/hello_world, but the build failed with the following errors:
Is this a wrong way to build, or is this a bug of HEAD of this repository? If this is a bug, is there any CIs to check builds?
Environment
opam list
https://gist.github.com/nekketsuuu/3e89defacfa1f569486a20b63c0d94d9