fix: Correctly set os-distribution on Windows#13536
Conversation
|
I'm not sure we need to use the same method. I think it's just assuming |
b08e46f to
7c1c646
Compare
Leonidas-from-XIV
left a comment
There was a problem hiding this comment.
I don't have cygwin nor msys at hand, but it seems ok to call uname instead of inspecting a binary.
Currently, we return a stub value that matches the OS name on Windows. But, the `os-distribution` needs to be `cygwin` or `msys2` when building in Cygwin or MSYS2, respectively, to detect dependencies correctly for various packages. We assume that the `uname` executable is on `PATH` when running under Cygwin or MSYS2, and use that to correctly detect the `os-distribution`. Closes ocaml#13310 Signed-off-by: Puneeth Chaganti <punchagan@muse-amuse.in>
7c1c646 to
fbac750
Compare
Alizter
left a comment
There was a problem hiding this comment.
I've checked on Windows and it is doing the right thing.
Currently, we return a stub value that matches the OS name on Windows. But, the
os-distributionneeds to becygwinormsys2when building in Cygwin or MSYS2, respectively, to detect dependencies correctly for various packages.We assume that the
unameexecutable is onPATHwhen running under Cygwin or MSYS2, and use that to correctly detect theos-distribution.Closes #13310