-
Notifications
You must be signed in to change notification settings - Fork 75
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
Create wrappers instead of symlinks #117
Comments
At least for me, i'm not convinved this should be the default since the wrapper would incur a penalty of longer execution time (largely nullifying any tool's attempts to be snappy), but maybe there could be an environment varaible / option that enables this behavior |
Do you have examples that fail? |
@juanibiapina |
@cornfeedhobo I just want to be clear, I didn't accept the patch because it was an incomplete fix (things would break) - not because I was unwilling. That's not to say this wouldn't be a useful feature - just that in the case of asdf, I don't think it applies. |
By looking at install instructions for A different approach could be to add support for basher to source files from certain packages. In my experience though, finding a heuristic that works for majority of packages can be quite difficult, since there's no pattern that identifies which files should be sourced. An alternative is to just accept A super hopeful approach would be to create a standard for bash packages where files that need to be sourced live in a specific directory, but I have no hopes of accomplishing such a feat. |
My use of
I can't find the origin of this pattern, but there was an original repo that started the repo convention used by many of these "bash packages", such as rbenv, pyenv, goenv, nodenv, etc. If I can track it down, I'll be sure to comment again with a link. Edit: https://github.com/qrush/sub
IMHO, this convention has existed for nearly 10 years now. I don't think it's special enough; and to their credit, they have outstanding issues that would address this eventually, like adding I would also like to remind everyone that In theory, it would have been nice to not have had to submit those PRs and things still work. Edit: Also to be clear, this proposal would still not fix |
Many tools expect to be run from a specific location.
I've made PRs to fix this in downstream tools, but I think it's time to consider having basher write wrappers scripts that are little more than
This would work around scripts that don't handle linking when sourcing child scripts
The text was updated successfully, but these errors were encountered: