Open quinn-dougherty opened 2 years ago
I thought omitting --ocaml-version would infer the latest possible ocaml in conformance to packages in mytest.opam.
It's not that clever I'm afraid - it picks the default ocaml version from nixpkgs
- thus the error, since you don't appear to have a nixpkgs
channel available.
To be honest it's probably better to just always pass --ocaml-version
, though it is a little tedious.
"$(nix-build --no-out-link ./opam2nix.nix)"/bin/opam2nix resolve ./mytest.opam
What's going on here? what would have to happen to get a better error message? is passing
--ocaml-version
minimally required behavior?In my head, I thought omitting
--ocaml-version
would infer the latest possibleocaml
in conformance to packages inmytest.opam
.