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

Default to search PATH #31

Open
cornfeedhobo opened this issue May 4, 2022 · 2 comments
Open

Default to search PATH #31

cornfeedhobo opened this issue May 4, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cornfeedhobo
Copy link

These tools assume that they manage the version entirely, but it would be nice to have a system default, if helm exists in $PATH.

@alexppg
Copy link
Member

alexppg commented May 17, 2022

Thanks for opening the issue! Not sure if I'll implement it, but contributions are wellcome/

@alexppg
Copy link
Member

alexppg commented May 23, 2022

I've been thinking about it, and I don't think it would be possible. They assume they manage the version because the helm-wrapper (I'll use helm as an example, but is the same for all) is really called just helm.
It's not possible for a binary called X to search for another binary called X using the PATH variable, since it will only find itself. The only thing that comes to my mind is knowing beforehand where the default binary would be, but it's not possible as there's too many places.
Anyway, I'll leave this open to see if somebody has an idea.

@alexppg alexppg added help wanted Extra attention is needed enhancement New feature or request labels May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants