xs-dev icon indicating copy to clipboard operation
xs-dev copied to clipboard

xs-dev setup cannot succeed on a Linux distribution without apt-get

Open dahenson opened this issue 1 year ago • 0 comments

When running xs-dev setup on Linux, it automatically attempts to install binary and library dependencies using apt-get. When running on a distribution with another package manager, the setup fails prematurely, even if the dependencies have been installed.

Potential solution

While I believe this setup script should be distro-agnostic by supporting apt, dnf, yum, apk, et al., another solution would be to check for the dependencies and skipping the installation step if they are installed.

Binaries can be checked with system.which, etc. If they are not installed, the script can attempt to install with the methods available (apt or whatever), but should fail with a friendly message to the developer to install the dependencies before attempting to run it again.

This approach puts the power back in the hands of the developer to set up their OS requirements without having to use an apt-based package manager.

dahenson avatar Nov 27 '24 04:11 dahenson