Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dahenson opened this issue Nov 27, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@dahenson
Copy link
Contributor

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.

@HipsterBrown HipsterBrown added the enhancement New feature or request label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants