-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
feature: Extend direnv stdlib with asdf specific helpers #155
Comments
Have you try use only the command |
I did test it as follows. I added
My
Then I run
|
I think #162 is a different issue. In #155 I propose to automate installation of plugins, while #162 discuses to make direnv not fail by default in case of missing plugins. Without #162 the UX is.
With #162 the UX probably would be
The good thing about #162 is that all missing plugins would be in the log. So you don't have to go trough iterative process. The ugly thing about it is that you do not discover the problem right away. Which means the direnv output might be not in front of your eyes anymore. The #162 also talks about adding ability to make some tools required while others are optional. This doesn't affect my team since we commit .envrc into the repository (and use
Ideal experience (at least for my diverse team) is
Thank you for letting me know about #162. I'll keep an eye on its development, since it might be useful in other projects I am working on. |
@iilyak are you familiar with the |
@jfly Unfortunately, it doesn't do what I need. It doesn't install missing plugins. See my quick test.
|
Ahh, gotcha. Unfortunately, I don't think that's a solvable problem in general: not all asdf plug-ins are in the global asdf plugin registry. In other words, no tool (neither asdf nor asdf-direnv) can know which plugins you want just by looking at the IMO, this is a fundamental asdf issue, and not something we should try to solve in |
My teams "solution" for this problem is to maintain a "dev environment setup" script that installs all the asdf plugins you need. |
My teams "solution" is what I mentioned above
However it would be great if |
Or |
The snippet reads
👍 |
I'm going to close this issue. While re-reading through asdf-vm/asdf#313, I discovered https://github.com/ngyewch/asdf-helper, which looks like a possible solution to the "which plugins do I need and how do I get them?" problem. |
Quite often I find myself copy/pasting following snippet into
.envrc
It would be really nice to have some commands to avoid this boilerplate.
The text was updated successfully, but these errors were encountered: