-
Notifications
You must be signed in to change notification settings - Fork 74
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
Should we skip linting when ocamlformat_source is None? #224
Comments
I asked @craigfe about this recently, and he said it was to do with wanting to lint dune files even in projects without ocamlformat. The dune docs say:
Which seems a bit odd, as new ones might get added without you doing anything. I guess people should use https://dune.readthedocs.io/en/latest/dune-files.html#formatting |
Yeah, I added
Perhaps some analysis of the actual errors (before printing out the above message) would also help. |
I think this is a bug in dune -- a newer version of the dune client should not break older workflows without a versioning step involved. We shouldn't be working around this with complex logic in ocaml-ci, as other CIs will eventually hit it then. I've filed ocaml/dune#3642 for downstream discussion. |
Visiting this as part of a general cleanup - @emillon can I please check in on the status of the linked dune issue. Possibly related: At the moment a missing Anything that you'd like to add to help decide what action we could take on this issue please @avsm @talex5 @favonia? Thanks //cc @tmcgilchrist |
We should handle that gracefully, also reported via #834. Pinged the linked issue on dune which has been inactive since 2020. |
I replied over there to clarify the scope of the issue. |
I have a question about this part of the code:
ocaml-ci/lib/lint.ml
Lines 22 to 26 in a94d6da
It seems when
ocamlformat_source
isNone
, it is impossible to have a workingocamlformat
around. If so, should we skipdune build @fmt
completely?The text was updated successfully, but these errors were encountered: