Closed jdx closed 1 year ago
I discovered this comment from the asdf team. I was really surprised. They also think the shortname repo is a problem, but they're solution is to dump it completely and move to requiring people always specifying the full repository when adding plugins.
To me this is bad design. I want to be able to install everything from a .tool-versions
file without needing to use google to find the repo names of my plugins. Imagine how annoying it would be setting up a new machine with like 5 runtimes in it having to google the plugin name for each and every plugin.
Notably it does seem like people want the ability to source a custom shorthand repository. I could see this potentially being useful in a large company. I'll have to think about this use-case more. If I bake everything in that's obviously going to be a problem. Maybe the solution is as simple as custom aliases for plugins as well as runtime versions? Though in that case you could just install all of the plugins you think you'll need.
rtx clones the shorthand repo around the first time it launches, then there is a fair amount of code in place to keep it up to date. It's not super complex but I think we could remove it and just hardcode all of this data somehow. I wrote a shell script with
gh
to fetch the github stargazer count of the entire database, it's not big at all.I'm thinking this could just go into a rust file. Maybe as a dependency so it doesn't need to get recompiled all the time.