opam-repository-mingw icon indicating copy to clipboard operation
opam-repository-mingw copied to clipboard

ocaml-env seems to change some unrelated file's newline behavior?

Open chenglou opened this issue 4 years ago • 1 comments

Hello! I'm running your stack on GitHub Action Windows CI, with the current default git settings (checked out files as CRLF). However, it seems that ocaml-env exec -- trivialScript changes some things. The files are still in CRLF but in my setup, git diff is showing a diff, possibly a stale git diff cache (I hardly believe this is actually the case but I've checked all the file's line ending at every step of my commands).

Tldr:

  • CI windows git checkout with CRLF
  • file.txt still in CRLF
  • git diff empty
  • run trivialScript
  • file.txt still in CRLF of course
  • git diff still empty
  • run ocaml-env exec --trivialScript
  • file.txt still in CRLF
  • git diff now shows that there are diffs, but the diff view shows that there isn't any (including, no newline changes. Unless I'm using git diff's options wrong):
    -foo
    +foo
    

I'm unfamiliar with where I can find the source to ocaml-env; do you know what could have happened here?

chenglou avatar Apr 29 '21 05:04 chenglou

cc @smorimoto who'll probably want to know about this =)

chenglou avatar Apr 29 '21 05:04 chenglou