You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action checks out code on windows on CRLF. This PR tried many methods of just using CRLF or converting to LF.
Tips:
- `print_endline` and multiline strings on windows ocaml fork use CRLF. `open_in_bin` + `really_input_string` too (!)
- `dos2unix` hangs when used inside `test.sh` but doesn't hang inside `ci.yml`.
- `cat` and `pipe` don't change line ending.
- use `cat -A` to check for line endings visibly. Life saving debugger.
- `sed "s/\r\n/\n/g"` apparently doesn't work on CI windows...
- `git checkout` + `ocaml-env` bug (?) fdopen/opam-repository-mingw#92
Whichever method of directly using CRLF doesn't work because of the last issue; it's likely that I'm being dumb...
So right now we set git to checkout using LF, let our native code output to CRLF, then instead of `dos2unix` or `sed`, use a perl one-liner in `test.sh` to convert those back into LF for comparison.
0 commit comments