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

mirage configure generated opam file #1331

Open
hannesm opened this issue May 17, 2022 · 1 comment
Open

mirage configure generated opam file #1331

hannesm opened this issue May 17, 2022 · 1 comment

Comments

@hannesm
Copy link
Member

hannesm commented May 17, 2022

Hello, I noticed that a mirage configure <options> generates an opam file and a context file (both in the mirage subdirectory).

What is the purpose of the context file? It contains configure <options>.

Why does the opam file include as build instructions mirage configure <optoions> --context ./mirage/context? This seems to repeat the <options>...

//cc @samoht @TheLortex

Thanks for clarrification.

@hannesm
Copy link
Member Author

hannesm commented May 19, 2022

AFAICT the context argument is mainly used for outputting the configure line, but I fail to understand the reasoning behind it. (I also fail to understand why we had .mirage.config earlier (in MirageOS3), but I think it was related to reloading state during the mirage build invocation) -- whereas now with MirageOS4 the build step is just a dune build (but please let me know what the context file is used for). //cc @samoht

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

No branches or pull requests

1 participant