`zef` is not installed on `windows-latest`
Closed this issue · 6 comments
lizmat commented
Having a script run:
run "zef", "install", "."
results in:
Failed to spawn process zef: no such file or directory (error code -4058)
whereas that works fine on ubuntu-latest and MacOS-latest.
Example: https://github.com/lizmat/sourcery/actions/runs/9709948595/job/26799645336
lizmat commented
skaji commented
Maybe
run "cmd.exe", "/x/d/c", "zef", "install", ".";
works.
skaji commented
In windows, zef
is actually zef.bat
.
lizmat commented
Ahhh... ok, so $*DISTRO.is-win ?? 'zef.bat' !! 'zef'
indeed does the trick. Thanks! Closing.
patrickbkr commented
I think this is not the real issue and won't help. AFAI recall, Windows auto completes the '.bat' (in addition to loads of other file extensions) when calling a filename without an extension. This might not be true for all API functions that perform a program call, but for the typical ones it is.
…On June 28, 2024 4:26:38 PM GMT+02:00, Elizabeth Mattijsen ***@***.***> wrote:
Ahhh... ok, so `$*DISTRO.is-win ?? 'zef.bat' !! 'zef'` indeed does the trick. Thanks! Closing.
--
Reply to this email directly or view it on GitHub:
#36 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
lizmat commented
FWIW, it does appear like it does fix the issue: https://github.com/lizmat/sourcery/actions/runs/9714371905 .
So it looks like it doesn't for run
?