OCaml: default to version 5.3#397478
Conversation
|
Format check is failing |
If you have some spare time, you can file a bug report against |
|
Please apply nixfmt-rfc-style in its current version. The entire tree has been formatted and we should consider a failing check to be actionable here. An issue in its output is not justification for ignoring the check, and you’d be leaving this problem for the next user or the next treewide format. I understand you may not like how this is being formatted, it may even be a bug upstream, but in the end these are mostly nits that the standardization is intended to remove. |
|
You might be right. But this is certainly not the place to discuss this issue. |
|
We're discussing it here because of the failing check. Will you apply the formatter to fix that failing check? |
|
No. |
adamcstephens
left a comment
There was a problem hiding this comment.
Formatting is no longer optional and failing to do so can cause failures for other PRs. This is true since the treewide format and enforcement PR. #380990.
Please see the approved and adopted RFC https://github.com/NixOS/rfcs/blob/master/rfcs/0166-nix-formatting.md
If you don’t like the output one suggestion could be to use this instead
assert lib.throwIf (lib.versionAtLeast ocaml.version "5.3") "eliom is not available for OCaml ${ocaml.version}" true;
This not a bug. Nixfmt is not reponsible for making every Nixpkgs idiosyncracy look good, and either way it has no means of doing that without resorting to static code analysis |
|
adamcstephens
left a comment
There was a problem hiding this comment.
All the failures are already happening on master. diffoscope was the only odd one out, but a check of its build yielded the same failure on master.
|
Thanks for the update. Sorry if it's not ideal. :/ |
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.