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

Use ocamlformat #66

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Use ocamlformat #66

merged 1 commit into from
Apr 24, 2020

Conversation

brendanlong
Copy link
Contributor

No description provided.

@@ -1 +1,2 @@
(lang dune 1.1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'd need to bump the dune language version to 1.7 since that's the first releast with fmt support.

reference: ocaml/opam-repository#15560 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to keep the opam deps are wide as possible so we don't limit how people can use this. For dune build @fmt, people don't need to run that at release anyway. I wish there was a way to specify particular deps for dev but not opam :\

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know dune doesn't fail at the moment, but it could in theory fail if it stars a check for what language version is used vs what language features we use. :\

Its unfortunate that the formatter can't be run via dune without this stanza in the dune-project file

@@ -1,3 +1,7 @@
#!/usr/bin/env ocaml

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably get rid of this file, since we'd need to use dune-release instead of topkg for publishing new releases

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave this since I don't know what it does. We can remove it in another PR if it's unnecessary.

@brendanlong
Copy link
Contributor Author

I'll wait to do this until after #62

@brendanlong brendanlong merged commit 95128dd into master Apr 24, 2020
@brendanlong brendanlong deleted the ocamlformat branch April 24, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants