-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add mise backend #166
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
Add mise backend #166
Conversation
|
@ripytide any other issues? |
src/backends/mise.rs
Outdated
| pub struct MiseOptions { | ||
| requested_version: Option<String>, | ||
| active: Option<bool>, | ||
| #[serde(default)] | ||
| version: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ripytide why change this? This means that pre-installed mise packages, when performing metapac unmanaged will get pinned down to their current version, irrespective of the user's specification (e.g will get version x.y.z instead of latest or lts) and removing the use command means that for a new machine the users will need to activate each binary manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All options should be Option since they are optional in group files which is what this struct represents. As for active I read the difference between mise install and mise use and the only difference was that use adds the package to the mise.toml but as mentioned previously the mise.toml file doesn't make sense if you are using metapac. Happy to discuss this more though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, interesting, so we should always be doing mise use rather than mise install since then installed packages get added to the PATH? So that'll mean we still need the --global flag too then. Can you make another PR to fix these issues in the mise backend?

Addresses #127