Skip to content
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

tell people which MirageOS version to use if they have the wrong one #338

Closed
wants to merge 1 commit into from

Conversation

sabine
Copy link

@sabine sabine commented Mar 31, 2022

No description provided.

@sabine sabine force-pushed the report_mirage_version_mismatch branch 2 times, most recently from f10e677 to d5de721 Compare March 31, 2022 08:34
Makefile Outdated Show resolved Hide resolved
@sabine sabine force-pushed the report_mirage_version_mismatch branch from d5de721 to 83736d6 Compare March 31, 2022 09:00
@sabine sabine force-pushed the report_mirage_version_mismatch branch from 83736d6 to b46be03 Compare March 31, 2022 09:37
@sabine
Copy link
Author

sabine commented Mar 31, 2022

Not 100% sure the detailed check for opam>=2.1.0 works in all compilation environments, please take a careful look, or be prepared to change to a simpler (but not fully accurate) opam>=2 check.

samoht added a commit to samoht/mirage-skeleton that referenced this pull request Jun 25, 2023
samoht added a commit to samoht/mirage-skeleton that referenced this pull request Jun 25, 2023
@hannesm hannesm mentioned this pull request Jul 3, 2023
hannesm added a commit to hannesm/mirage-skeleton that referenced this pull request May 10, 2024
The purpose is to render nice error messages to users: instead of some
config.ml OCaml error, a message is printed that this unikernel is not
compatible with the installed version of mirage, and please upgrade/downgrade.

I also took the liberty to cleanup some of the example unikernels in terms of
(a) using Duration (b) using Logs (c) a line break after the bind operator (>>=)

This superseeds mirage#338
hannesm added a commit to hannesm/mirage-skeleton that referenced this pull request May 10, 2024
The purpose is to render nice error messages to users: instead of some
config.ml OCaml error, a message is printed that this unikernel is not
compatible with the installed version of mirage, and please upgrade/downgrade.

I also took the liberty to cleanup some of the example unikernels in terms of
(a) using Duration (b) using Logs (c) avoiding Printf

This superseeds mirage#338
hannesm added a commit to hannesm/mirage-skeleton that referenced this pull request May 10, 2024
The purpose is to render nice error messages to users: instead of some
config.ml OCaml error, a message is printed that this unikernel is not
compatible with the installed version of mirage, and please upgrade/downgrade.

I also took the liberty to cleanup some of the example unikernels in terms of
(a) using Duration (b) using Logs (c) avoiding Printf

This superseeds mirage#338
@hannesm
Copy link
Member

hannesm commented May 16, 2024

Thanks for your motivating work. We have since in Mirage 4.4 introduced a header (* mirage >= 4.4.0 & < 4.6.0 *) for "config.ml" which outputs a nice error message if your mirage version is too old or too new. Obviously this only works since mirage 4.4.0.

In #395 I added these headers to all the example unikernels :)

@hannesm hannesm closed this May 16, 2024
@sabine
Copy link
Author

sabine commented May 17, 2024

Thank you, Hannes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants