Rokit is unusable on Windows because current_exe_name
strips EXE_EXTENSION
instead of EXE_SUFFIX
#9
Labels
bug
Something isn't working
In
Runner::should_run
, theCARGO_BIN_NAME
environment variable is compared toRunner.exe_name
:https://github.com/filiptibell/rokit/blob/dfdfc12919c3b56fcb4aecc309b92090463f25d7/src/runner/mod.rs#L27-L29
Runner.exe_name
is populated usingcurrent_exe_name
:https://github.com/filiptibell/rokit/blob/dfdfc12919c3b56fcb4aecc309b92090463f25d7/lib/system/current.rs#L46-L72
EXE_EXTENSION
does not include the.
, so when this function strips it, we end up with a string likerokit.
orrojo.
.To fix this,
current_exe_name
should stripEXE_SUFFIX
instead ofEXE_EXTENSION
.The text was updated successfully, but these errors were encountered: