Closed MisterDA closed 2 years ago
Removed the ocamlformat reformat to ease review. cc @jonahbeckford as a Windows user, what do you think of having unix-style filepaths for keys?
Unix style paths as keys are a great idea. Thanks!
Thanks! I'm not sure why, but now the CI on Windows is failing and I cannot reproduce the failure locally. https://github.com/MisterDA/ocaml-crunch/runs/7215696643
I'm not sure why, but now the CI on Windows is failing and I cannot reproduce the failure locally. https://github.com/MisterDA/ocaml-crunch/runs/7215696643
Seems related to \r\n
?
That seems to me to be a CRLF problem ... I usually run into two things that cause that problem:
\n
with open_out
on Windows it will insert \r\n
. I try to use open_out_bin
exclusively.Using open_out_bin
fixes the problem, thanks. https://github.com/MisterDA/ocaml-crunch/runs/7231290939
It's still strange because the diff command should have ignored CR here:
D:\cygwin\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/default/test/t1.expected.mli _build/default/test/t1.mli
IMO the PR is good to go now.
To me this looks fine, thanks for working on the windows support thereof @MisterDA.
A bunch of fixes for ocaml-crunch.
SOURCE_DATE_EPOCH
, readme);Unix.realpath
if available (requires Dune 2.5);Perhaps best reviewed on a per-commit basis, but the diff isn't too big anyway. You can see that the GHA workflow succeeded at https://github.com/MisterDA/ocaml-crunch/actions/runs/2621639339.