-
Notifications
You must be signed in to change notification settings - Fork 263
/
ubi.md
42 lines (29 loc) · 1.65 KB
/
ubi.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Ubi Backend <Badge type="warning" text="experimental" />
You may install GitHub Releases and URL packages directly using [ubi](https://github.com/houseabsolute/ubi) backend.
The code for this is inside of the mise repository at [`./src/backend/ubi.rs`](https://github.com/jdx/mise/blob/main/src/backend/ubi.rs).
## Dependencies
This relies on having `ubi` installed. You can install it with or without mise.
Here is how to install `ubi` with mise:
```sh
mise use -g cargo:ubi
```
## Usage
The following installs the latest version of goreleaser
and sets it as the active version on PATH:
```sh
$ mise use -g ubi:goreleaser/goreleaser
$ goreleaser --version
1.25.1
```
The version will be set in `~/.config/mise/config.toml` with the following format:
```toml
[tools]
"ubi:goreleaser/goreleaser" = "latest"
```
### Supported Ubi Syntax
| Description | Usage |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| GitHub shorthand for latest release version | `ubi:goreleaser/goreleaser` |
| GitHub shorthand for specific release version | `ubi:goreleaser/goreleaser@1.25.1` |
| URL syntax | `ubi:https://github.com/goreleaser/goreleaser/releases/download/v1.16.2/goreleaser_Darwin_arm64.tar.gz` |
Other syntax may work but is unsupported and untested.