-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Check dependency with non-sudo #338
Comments
Affected function: ruby-install/share/ruby-install/package_manager.sh Lines 32 to 54 in ea2b8bb
For example with APT we can have [ `dpkg -l "$@" | grep ii | wc -l` = $# ] In MacPorts [ `port installed active "$@" | wc -l` = $(($# + 1)) ] |
Anyone interested in this? I can make PR if this will be reviewed and merged. |
Bump. Again, I can make PR. |
I like the idea but I'm a bit worried about portability with the check for satisfied dependencies. If we could get those where they work reliably, it seems nice to me. |
As a first time user a sudden |
I think we would need to add a separate function that only checked whether one (or maybe more?) dependencies were already installed? The function would need a similar |
An alternative would be to list the dependencies as "files", not packages, then checking will never require sudo, and will not depend on the package manager (and will work even with packages installed manually. |
@eloyesp I think some dependencies (like |
I’d feel better if this leveraged an explicit |
I know that I can skip dependency check with
--no-install-deps
, but I’m proposing the default behavior to be:This way we can skip unnecessary
sudo
without breaking any current behavior.The text was updated successfully, but these errors were encountered: