Skip to content

Commit

Permalink
[bug] Fix mise x cargo:eza not installing during run
Browse files Browse the repository at this point in the history
Addresses a bug with `mise exec` where using an unversioned tool
reference causes the underlying binary to not be installed on first use.

Instead we treat an unqualified tool as having tool@latest and handle
that in the else clause.
  • Loading branch information
zph committed Apr 20, 2024
1 parent c9d3986 commit 4952e54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/toolset/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ impl ToolsetBuilder {
for arg in args {
if let Some(tvr) = &arg.tvr {
arg_ts.add_version(tvr.clone(), Default::default());
} else {
let tvr = ToolVersionRequest::new(arg.forge.clone(), "latest".into());
arg_ts.add_version(tvr.clone(), Default::default());
}
}
ts.merge(arg_ts);
Expand Down

0 comments on commit 4952e54

Please sign in to comment.