Advice: Auto-resolving plugins #5528
JFenstermacher
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to figure out what's the most elegant way to have
miseauto-resolve asdf plugin configs for private tools.I have written a CLI that uses
miseunder the hood that allows my organization to build and share binaries simply. Every binary is backed by a common (It's a single repository) private ASDF Plugin, that uses the tool name to determine what is the backing binary.Problem
When entering a repository, private tools can't be resolved until the asdf plugin is added for the tool to point to the ASDF plugin that backs it. In my wrapper CLI, I've exposed an
installcommand, that first adds all custom plugins available in the configs, and then does amise install, but this is pretty inelegant in my view.My goal is have the thinnest veneer on-top of
misepossible. There's functionality that will never be represented bymiselike binary scaffolding, but I want my users to learnmisenot my custom tooling for the sake of transferability of knowledge.Ideal Solution
Ideally, I would like that when
mise installruns, I could pre-empt the install, set up the appropriate required plugins.Attempts
I've attempted to use the experimental hooks to provide a global
preinstallhook, but this fails for two reasons.preinstallhookOpen to ideas about the best way to approach solving?
Beta Was this translation helpful? Give feedback.
All reactions