Skip to content

Commit

Permalink
fix: make ubi installs with exe work for mise x (#2825)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx authored Oct 26, 2024
1 parent b2a9b7d commit 353ee94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ editLink: false
| esy | [asdf:asdf-community/asdf-esy](https://github.com/asdf-community/asdf-esy) |
| etcd | [asdf:particledecay/asdf-etcd](https://github.com/particledecay/asdf-etcd) |
| evans | [asdf:goki90210/asdf-evans](https://github.com/goki90210/asdf-evans) |
| exa | [asdf:nyrst/asdf-exa](https://github.com/nyrst/asdf-exa) |
| eza | [asdf:lwiechec/asdf-eza](https://github.com/lwiechec/asdf-eza) |
| eza | [ubi:eza-community/eza](https://github.com/eza-community/eza) |
| fd | [asdf:https://gitlab.com/wt0f/asdf-fd](https://gitlab.com/wt0f/asdf-fd) |
| ffmpeg | [asdf:acj/asdf-ffmpeg](https://github.com/acj/asdf-ffmpeg) |
| figma-export | [asdf:younke/asdf-figma-export](https://github.com/younke/asdf-figma-export) |
Expand Down
14 changes: 7 additions & 7 deletions src/toolset/tool_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,30 @@ impl ToolRequest {
};
Ok(match s.split_once(':') {
Some((ref_type @ ("ref" | "tag" | "branch" | "rev"), r)) => Self::Ref {
backend,
ref_: r.to_string(),
ref_type: ref_type.to_string(),
options: Default::default(),
options: backend.opts.clone().unwrap_or_default(),
backend,
},
Some(("prefix", p)) => Self::Prefix {
backend,
prefix: p.to_string(),
options: Default::default(),
options: backend.opts.clone().unwrap_or_default(),
backend,
},
Some(("path", p)) => Self::Path(backend, PathBuf::from(p)),
Some((p, v)) if p.starts_with("sub-") => Self::Sub {
backend,
sub: p.split_once('-').unwrap().1.to_string(),
orig_version: v.to_string(),
backend,
},
None => {
if s == "system" {
Self::System(backend)
} else {
Self::Version {
backend,
version: s,
options: Default::default(),
options: backend.opts.clone().unwrap_or_default(),
backend,
}
}
}
Expand Down

0 comments on commit 353ee94

Please sign in to comment.