When a user downgrades their version of dune, and tries to use an installed dune package. They are met with the following situation:
$ dune build
File ".../dune-package", line 1, characters 11-15:
1 | (lang dune 3.23)
^^^^
Error: Version 3.23 of the dune language is not supported.
Supported versions of this extension in version 3.23 of the dune language:
- 1.0 to 1.12
- 2.0 to 2.9
- 3.0 to 3.21
-> ...
This is really unhelpful.
Instead we should say something like:
Error: The installed `dune` package was built and installed with an
unsupported version of dune. The current dune version is ....
Hint: Upgrade your version of dune.
When a user downgrades their version of dune, and tries to use an installed dune package. They are met with the following situation:
This is really unhelpful.
Instead we should say something like: