Closed h3rald closed 3 weeks ago
Because in https://github.com/nim-lang/choosenim/pull/41, init.sh
provides a zip file instead of an exe file to ship some necessaries DLLs, bat files etc.
Either https://github.com/iffy/install-nim/blob/019401647969089934e8ad6b31b4915839cf282a/install-nim.sh#L383 need unzip the zip file or use a custom init.sh
In my opinion, the default init.sh should be updated to handle this specific case.
Until recently, you could just execute init.sh and it would work, but now it doesn't (on Windows):
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
choosenim-init: Downloading choosenim-0.8.9_windows_amd64.zip
init.sh: line 79: /tmp/choosenim-0.8.9_windows_amd64.zip: cannot execute binary file: Exec format error
In other words, the default init.sh can't be used on Windows anymore.
Make sense. I have reverted https://github.com/nim-lang/choosenim/pull/41. It should work now.
Perfect, thanks!
This used to work until last week... but now installing Nim on Windows (using GitHub actions) via choosenim fails:
See: