-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add support for dune #3
Conversation
Thanks. |
efb1153
to
e2f3c47
Compare
@Khady, you should be able to rebase on master and have the CI run |
e2f3c47
to
39e696e
Compare
39e696e
to
21dfa46
Compare
test/merge_dune.ml
Outdated
(executable | ||
(name aaaa) | ||
(libraries unix) | ||
(public_name pppp)) | ||
|
||
(library | ||
(name liblib)) |}]) |
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.
the output is not correct, it results into branch2
formatted and the content of old_branch1
is dropped. IIUC the final state should be
(executable
(name bbbb)
(libraries unix)
(public_name pppp))
(library
(name liblib))
(alias
(name runtest)
(action
(diff rebase.diff rebase.diff.gen)))
another problem when running merge_fmt by hand
|
and now getting another error. I can't spend more time on it right now. Will try to come back to that in the coming weeks using this test repo for reference https://github.com/Khady/merge-fmt-test
|
4b22de1
to
92265de
Compare
|
Can you add a changelog entry and mark the PR as ready |
Thanks, should be released soon. ocaml/opam-repository#23355 |
CHANGES: - Add support of dune formatter. (hhugo/merge-fmt#3)
dune has the ability to format its files. Adding support through the
format-dune-file
command, even though it's not perfect.I can drop the ocamlformat change if necessary, or put it in a different PR. It was easier to have it when developing with a modern ocaml (4.14)
This work is sponsored by Ahrefs.