Skip to content

Format dune files #789

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

Closed
wants to merge 4 commits into from
Closed

Conversation

gretay-js
Copy link
Contributor

Add target make fmt-dune-files and add it as a dependency of make fmt target.
Uses dune format-dune-file (which formats a single file and does not work in place) and then mv.

This PR also includes separate commit to reformat all existing 65 dune files in the repo, including the once under ocaml/.
It should be easy to exclude ocaml/ from the rule.
There was a change in permissions in file the main dune file (and some others) from 755 to 644.

@gretay-js
Copy link
Contributor Author

I'll rework this to use "dune build @fmt" directly.

@gretay-js
Copy link
Contributor Author

Superceded by #799

@mshinwell mshinwell closed this Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants