Open Eonfge opened 1 month ago
@Eonfge We've had issues with command -v
in the past because not all systems support it.
For end-users: install SDKMAN via the official installation channel. The installer will halt if you don't have all the necessary dependencies (zip
, unzip
, curl
) installed.
Hey, I think there is a small gap in the functionality here: Once installed, there is no check when running SDKMAN.
I must have installed SDKMAN 2 years ago on this laptop, and in the meantime dependencies have changed for other applications. Thus, zip was removed. If SDKMAN were to be distributed with a reliable packaging method like DEB and/or RPM, this problem could have been avoided.
For now, it would be best to just add a runtime check for zip
Could you btw tell me which systems don't support command -v
since it's a mandatory part of the POSIX standard which all Shells should support.
Okay, sorry for my misinformation. I went back and looked at the project history and found that we had introduced command -v
elsewhere instead of using which
.
If you were up for taking on this work on, your PR would be greatly appreciated. Also, with the Rust rewrite underway, keep in mind that these issues will disappear once we no longer rely on the bash functions.
Bug report When
zip
is not installed on a Linux system, there is no clear error message when unpacking a .zip file fails.To reproduce
System info
Triage
zip
with your package manager.command -v zip
to check ifzip
is installed