Skip to content

Conversation

@Mikel-Landa
Copy link
Contributor

@Mikel-Landa Mikel-Landa commented Nov 10, 2025

Addresses #127

@Mikel-Landa Mikel-Landa changed the title Add mise backend, fix compatibility issue with cargo-binstall Add mise backend Nov 11, 2025
@Mikel-Landa
Copy link
Contributor Author

@ripytide any other issues?

@ripytide ripytide merged commit e0aecb9 into ripytide:main Nov 12, 2025
5 checks passed
Comment on lines 16 to 18
pub struct MiseOptions {
requested_version: Option<String>,
active: Option<bool>,
#[serde(default)]
version: Option<String>,
Copy link
Contributor Author

@Mikel-Landa Mikel-Landa Nov 12, 2025

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

Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From their docs:
image
meaning that installing it will not add it to the PATH and it won't be available for the user. All good for the options, the other questions was about changing requested_version to version having the consequences described above.

Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants