-
Notifications
You must be signed in to change notification settings - Fork 323
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 cargo-binstall plugin #2062
Comments
This wont do anythin until we create a cargo-binstall plugin. Relates to #2062
It seems that the cargo backend already uses cargo-binstall when it is available (https://github.com/jdx/mise/blob/main/src/forge/cargo.rs#L66). |
yes but there isn't a fast way to install cargo-binstall to use it |
Ah, I see. This is the same problem for all these backends. I do not know how mise handle these dependencies. There is the ordering, but also the update of the environment. For example with the pipx backend : the pipx backend depends on pipx being installed, and pipx depends on python being installed, so if mise had to install python, pipx and then pipx:mkdocs in one run, it should follow these steps:
This is easy to do if you activate mise and execute three separate commands in the shell, but can mise do this internally? |
yes, it has logic to handle this use-case, however the dependencies currently need to be manually defined in the mise cli |
I was thinking along the same lines about about the UBI backend. Could cargo-binstall and/or UBI be pulled into mise as Rust libraries, so there's no need to install them separately? I'm not sure if either of those projects actually exposes usable library crates, or if they'd even be open to such suggestions. I'm just throwing my two cents out :) |
I'm the author of |
Actually, looking at the |
I took a stab at making I think this could probably be used by |
@jdx had any chance to think about embedding ubi / cargo-binstall as rust dependencies? :) |
I have a mostly done PoC PR of ubi-as-a-library in #2290. There's a test failing that I'm sure not sure how to replace, since it relies on mocking the FWIW, I think |
might be ideal to wait for vfox for this. If we had this, it would be possible to make bootstrapping a lot faster when using the cargo backend, e.g.:
The text was updated successfully, but these errors were encountered: