-
Notifications
You must be signed in to change notification settings - Fork 22
Cleanup: use Dune 2.0; reformat #54
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
Conversation
dune-project
Outdated
"Implementation of the xenstore protocol in OCaml. This is an\n alternative implementation to the implementation in the Xen project.") | ||
(depends | ||
(dune | ||
(>= "2.0")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dune recommends to leave a dependency on dune out: it'll automatically add a dependency based on the 'lang' version declared in dune-project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opam-version: "2.0" | ||
maintainer: "dave@recoil.org" | ||
synopsis: "Xenstore protocol in pure OCam" | ||
description: """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There used to be a longer description here, see the previous .opam file, can we keep it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh - missed it. Will fix
* Move to Dune 2.0 * Generate OPam file from dune-project * New Makefile target: format Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
Signed-off-by: Christian Lindig <christian.lindig@cloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good in general. I don't have a particular opinion on what ocamlformat
settings should be used, what matters to me is that formatting is consistent within a project, and using ocamlformat
ensures that.
If @freddy77 is working on more patches to ocaml-xenstore, then probably a good idea to rebase that work once this PR is merged to avoid conflicts due to formatting
(although not a big problem if a PR is created on the old code, we should be able to reformat the PR using the merge-fmt
tool).
No problem merging this in, maximum I'll reformat my code too and rebase on it. |
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: why these empty lines?
@lindig @edwintorok why this was not merged? Can we merge it ? |
I don't have permission to merge PRs on this repo, I'm not sure who does (this is an upstream Mirage project, not a XenServer or XAPI project). As you can see my tick is grey, instead of green. |
It looks like your previous PR got merged by @palainp, perhaps he can help merge this PR too? |
Sorry all, I missed that one, I merge now :) |
Thank you! And BTW, looking at #53 (comment), feel free to ping me when there are enough changes to cut a new release :) |
CHANGES: * minor performance fixes (mirage/ocaml-xenstore#53 by freddy77) * use dune 2.0 (mirage/ocaml-xenstore#54 by lindig) * require OCaml 4.13 (mirage/ocaml-xenstore#56 by last-genius) * Add support `XS_DIRECTORY_PART` to the client (mirage/ocaml-xenstore#55 by last-genius) * Add x-maintenance-intent to opam metadata (mirage/ocaml-xenstore#57 by hannesm)
This is just some cleanup to access modern Dune features. If you prefer a different code formatting I can adjust to that, of course. I tried to pick something that is not controversial.