Skip to content
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

feat: migrate more tools away from asdf #3205

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ editLink: false
| cyclonedx | [aqua:CycloneDX/cyclonedx-cli](https://github.com/CycloneDX/cyclonedx-cli) [asdf:xeedio/asdf-cyclonedx](https://github.com/xeedio/asdf-cyclonedx) |
| dagger | [aqua:dagger/dagger](https://github.com/dagger/dagger) [asdf:virtualstaticvoid/asdf-dagger](https://github.com/virtualstaticvoid/asdf-dagger) |
| danger-js | [asdf:MontakOleg/asdf-danger-js](https://github.com/MontakOleg/asdf-danger-js) |
| dapr | [asdf:asdf-community/asdf-dapr-cli](https://github.com/asdf-community/asdf-dapr-cli) |
| dapr | [aqua:dapr/cli](https://github.com/dapr/cli) [asdf:asdf-community/asdf-dapr-cli](https://github.com/asdf-community/asdf-dapr-cli) |
| dart | [asdf:PatOConnor43/asdf-dart](https://github.com/PatOConnor43/asdf-dart) [vfox:version-fox/vfox-dart](https://github.com/version-fox/vfox-dart) |
| dasel | [aqua:TomWright/dasel](https://github.com/TomWright/dasel) [asdf:asdf-community/asdf-dasel](https://github.com/asdf-community/asdf-dasel) |
| datree | [aqua:datreeio/datree](https://github.com/datreeio/datree) [asdf:lukeab/asdf-datree](https://github.com/lukeab/asdf-datree) |
Expand All @@ -162,25 +162,24 @@ editLink: false
| deck | [aqua:Kong/deck](https://github.com/Kong/deck) [asdf:nutellinoit/asdf-deck](https://github.com/nutellinoit/asdf-deck) |
| delta | [ubi:dandavison/delta](https://github.com/dandavison/delta) [asdf:andweeb/asdf-delta](https://github.com/andweeb/asdf-delta) |
| deno | [core:deno](https://mise.jdx.dev/lang/deno.html) |
| dep | [asdf:paxosglobal/asdf-dep](https://github.com/paxosglobal/asdf-dep) |
| depot | [asdf:depot/asdf-depot](https://github.com/depot/asdf-depot) |
| depot | [ubi:depot/cli](https://github.com/depot/cli) [asdf:depot/asdf-depot](https://github.com/depot/asdf-depot) |
| desk | [aqua:jamesob/desk](https://github.com/jamesob/desk) [asdf:endorama/asdf-desk](https://github.com/endorama/asdf-desk) |
| devspace | [aqua:devspace-sh/devspace](https://github.com/devspace-sh/devspace) [asdf:NeoHsu/asdf-devspace](https://github.com/NeoHsu/asdf-devspace) |
| dhall | [asdf:aaaaninja/asdf-dhall](https://github.com/aaaaninja/asdf-dhall) |
| difftastic | [ubi:wilfred/difftastic](https://github.com/wilfred/difftastic) [asdf:volf52/asdf-difftastic](https://github.com/volf52/asdf-difftastic) |
| digdag | [asdf:jtakakura/asdf-digdag](https://github.com/jtakakura/asdf-digdag) |
| direnv | [aqua:direnv/direnv](https://github.com/direnv/direnv) [asdf:asdf-community/asdf-direnv](https://github.com/asdf-community/asdf-direnv) |
| dive | [ubi:wagoodman/dive](https://github.com/wagoodman/dive) [asdf:looztra/asdf-dive](https://github.com/looztra/asdf-dive) |
| djinni | [asdf:cross-language-cpp/asdf-djinni](https://github.com/cross-language-cpp/asdf-djinni) |
| djinni | [ubi:cross-language-cpp/djinni-generator](https://github.com/cross-language-cpp/djinni-generator) [asdf:cross-language-cpp/asdf-djinni](https://github.com/cross-language-cpp/asdf-djinni) |
| dmd | [asdf:sylph01/asdf-dmd](https://github.com/sylph01/asdf-dmd) |
| docker-compose-v1 | [asdf:yilas/asdf-docker-compose-v1](https://github.com/yilas/asdf-docker-compose-v1) |
| docker-slim | [asdf:xataz/asdf-docker-slim](https://github.com/xataz/asdf-docker-slim) |
| docker-compose | [aqua:docker/compose](https://github.com/docker/compose) |
| docker-slim | [ubi:slimtoolkit/slim](https://github.com/slimtoolkit/slim) [asdf:xataz/asdf-docker-slim](https://github.com/xataz/asdf-docker-slim) |
| dockle | [aqua:goodwithtech/dockle](https://github.com/goodwithtech/dockle) [asdf:mathew-fleisch/asdf-dockle](https://github.com/mathew-fleisch/asdf-dockle) |
| doctl | [ubi:digitalocean/doctl](https://github.com/digitalocean/doctl) [asdf:maristgeek/asdf-doctl](https://github.com/maristgeek/asdf-doctl) |
| doctoolchain | [asdf:joschi/asdf-doctoolchain](https://github.com/joschi/asdf-doctoolchain) |
| docuum | [ubi:stepchowfun/docuum](https://github.com/stepchowfun/docuum) [cargo:docuum](https://crates.io/crates/docuum) [asdf:bradym/asdf-docuum](https://github.com/bradym/asdf-docuum) |
| dome | [asdf:jtakakura/asdf-dome](https://github.com/jtakakura/asdf-dome) |
| doppler | [asdf:takutakahashi/asdf-doppler](https://github.com/takutakahashi/asdf-doppler) |
| doppler | [ubi:DopplerHQ/cli](https://github.com/DopplerHQ/cli) [asdf:takutakahashi/asdf-doppler](https://github.com/takutakahashi/asdf-doppler) |
| dotenv-linter | [ubi:dotenv-linter/dotenv-linter](https://github.com/dotenv-linter/dotenv-linter) [asdf:wesleimp/asdf-dotenv-linter](https://github.com/wesleimp/asdf-dotenv-linter) |
| dotnet | [asdf:hensou/asdf-dotnet](https://github.com/hensou/asdf-dotnet) [vfox:version-fox/vfox-dotnet](https://github.com/version-fox/vfox-dotnet) |
| dotnet-core | [asdf:emersonsoares/asdf-dotnet-core](https://github.com/emersonsoares/asdf-dotnet-core) |
Expand All @@ -190,12 +189,12 @@ editLink: false
| driftctl | [aqua:snyk/driftctl](https://github.com/snyk/driftctl) [asdf:nlamirault/asdf-driftctl](https://github.com/nlamirault/asdf-driftctl) |
| drone | [ubi:harness/drone-cli](https://github.com/harness/drone-cli) [asdf:virtualstaticvoid/asdf-drone](https://github.com/virtualstaticvoid/asdf-drone) |
| dt | [aqua:so-dang-cool/dt](https://github.com/so-dang-cool/dt) [asdf:so-dang-cool/asdf-dt](https://github.com/so-dang-cool/asdf-dt) |
| dtm | [asdf:zhenyuanlau/asdf-dtm](https://github.com/zhenyuanlau/asdf-dtm) |
| dtm | [ubi:devstream-io/devstream](https://github.com/devstream-io/devstream) [asdf:zhenyuanlau/asdf-dtm](https://github.com/zhenyuanlau/asdf-dtm) |
| duf | [aqua:muesli/duf](https://github.com/muesli/duf) [asdf:NeoHsu/asdf-duf](https://github.com/NeoHsu/asdf-duf) |
| dust | [ubi:bootandy/dust](https://github.com/bootandy/dust) [asdf:looztra/asdf-dust](https://github.com/looztra/asdf-dust) |
| dvc | [asdf:fwfurtado/asdf-dvc](https://github.com/fwfurtado/asdf-dvc) |
| dyff | [aqua:homeport/dyff](https://github.com/homeport/dyff) [asdf:https://gitlab.com/wt0f/asdf-dyff](https://gitlab.com/wt0f/asdf-dyff) |
| dynatrace-monaco | [asdf:nsaputro/asdf-monaco](https://github.com/nsaputro/asdf-monaco) |
| dynatrace-monaco | [ubi:Dynatrace/dynatrace-configuration-as-code](https://github.com/Dynatrace/dynatrace-configuration-as-code) [asdf:nsaputro/asdf-monaco](https://github.com/nsaputro/asdf-monaco) |
| earthly | [aqua:earthly/earthly](https://github.com/earthly/earthly) [asdf:YR-ZR0/asdf-earthly](https://github.com/YR-ZR0/asdf-earthly) |
| ecspresso | [aqua:kayac/ecspresso](https://github.com/kayac/ecspresso) [asdf:kayac/asdf-ecspresso](https://github.com/kayac/asdf-ecspresso) |
| editorconfig-checker | [aqua:editorconfig-checker/editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) [asdf:gabitchov/asdf-editorconfig-checker](https://github.com/gabitchov/asdf-editorconfig-checker) |
Expand Down Expand Up @@ -774,7 +773,7 @@ editLink: false
| vultr | [ubi:vultr/vultr-cli](https://github.com/vultr/vultr-cli) [asdf:ikuradon/asdf-vultr-cli](https://github.com/ikuradon/asdf-vultr-cli) |
| wasi-sdk | [asdf:coolreader18/asdf-wasi-sdk](https://github.com/coolreader18/asdf-wasi-sdk) |
| wasm3 | [asdf:tachyonicbytes/asdf-wasm3](https://github.com/tachyonicbytes/asdf-wasm3) |
| wasm4 | [asdf:jtakakura/asdf-wasm4](https://github.com/jtakakura/asdf-wasm4) |
| wasm4 | [ubi:aduros/wasm4](https://github.com/aduros/wasm4) [asdf:jtakakura/asdf-wasm4](https://github.com/jtakakura/asdf-wasm4) |
| wasmer | [aqua:wasmerio/wasmer](https://github.com/wasmerio/wasmer) [asdf:tachyonicbytes/asdf-wasmer](https://github.com/tachyonicbytes/asdf-wasmer) |
| wasmtime | [aqua:bytecodealliance/wasmtime](https://github.com/bytecodealliance/wasmtime) [asdf:tachyonicbytes/asdf-wasmtime](https://github.com/tachyonicbytes/asdf-wasmtime) |
| watchexec | [ubi:watchexec/watchexec](https://github.com/watchexec/watchexec) [asdf:nyrst/asdf-watchexec](https://github.com/nyrst/asdf-watchexec) |
Expand Down
30 changes: 20 additions & 10 deletions registry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ cyclonedx.backends = ["aqua:CycloneDX/cyclonedx-cli", "asdf:xeedio/asdf-cycloned
cyclonedx.test = ["cyclonedx --version", "{{version}}"]
dagger.backends = ["aqua:dagger/dagger", "asdf:virtualstaticvoid/asdf-dagger"]
danger-js.backends = ["asdf:MontakOleg/asdf-danger-js"]
dapr.backends = ["asdf:asdf-community/asdf-dapr-cli"]
dapr.backends = ["aqua:dapr/cli", "asdf:asdf-community/asdf-dapr-cli"]
dapr.test = ["dapr --version", "CLI version: {{version}}"]
dart.backends = ["asdf:PatOConnor43/asdf-dart", "vfox:version-fox/vfox-dart"]
dasel.backends = ["aqua:TomWright/dasel", "asdf:asdf-community/asdf-dasel"]
datree.backends = ["aqua:datreeio/datree", "asdf:lukeab/asdf-datree"]
Expand All @@ -250,27 +251,34 @@ dbmate.backends = ["aqua:amacneil/dbmate", "asdf:juusujanar/asdf-dbmate"]
deck.backends = ["aqua:Kong/deck", "asdf:nutellinoit/asdf-deck"]
delta.backends = ["ubi:dandavison/delta", "asdf:andweeb/asdf-delta"]
deno.backends = ["core:deno"]
dep.backends = ["asdf:paxosglobal/asdf-dep"]
depot.backends = ["asdf:depot/asdf-depot"]
depot.backends = ["ubi:depot/cli[exe=depot]", "asdf:depot/asdf-depot"]
depot.test = ["depot --version", "depot version {{version}}"]
desk.backends = ["aqua:jamesob/desk", "asdf:endorama/asdf-desk"]
desk.os = ["linux", "macos"]
desk.test = ["desk version", "desk {{version}}"]
devspace.backends = ["aqua:devspace-sh/devspace", "asdf:NeoHsu/asdf-devspace"]
# dhall seems to not provide any releases in the latest
# dhall.backends = ["aqua:dhall-lang/dhall-haskell", "asdf:aaaaninja/asdf-dhall"]
dhall.backends = ["asdf:aaaaninja/asdf-dhall"]
difftastic.backends = ["ubi:wilfred/difftastic[exe=difft]", "asdf:volf52/asdf-difftastic"]
digdag.backends = ["asdf:jtakakura/asdf-digdag"]
direnv.backends = ["aqua:direnv/direnv", "asdf:asdf-community/asdf-direnv"]
dive.backends = ["ubi:wagoodman/dive", "asdf:looztra/asdf-dive"]
djinni.backends = ["asdf:cross-language-cpp/asdf-djinni"]
djinni.backends = ["ubi:cross-language-cpp/djinni-generator", "asdf:cross-language-cpp/asdf-djinni"]
# djinni.test = ["djinni-generator --version", "djinni generator version {{version}}"] # test fails on windows
dmd.backends = ["asdf:sylph01/asdf-dmd"]
docker-compose-v1.backends = ["asdf:yilas/asdf-docker-compose-v1"]
docker-slim.backends = ["asdf:xataz/asdf-docker-slim"]
docker-compose.backends = ["aqua:docker/compose"]
docker-compose.test = ["docker-cli-plugin-docker-compose --version", "Docker Compose version v{{version}}"]
docker-slim.backends = ["ubi:slimtoolkit/slim", "asdf:xataz/asdf-docker-slim"]
docker-slim.os = ["linux", "macos"]
docker-slim.test = ["slim --version", "{{version}}"]
dockle.backends = ["aqua:goodwithtech/dockle", "asdf:mathew-fleisch/asdf-dockle"]
doctl.backends = ["ubi:digitalocean/doctl", "asdf:maristgeek/asdf-doctl"]
doctoolchain.backends = ["asdf:joschi/asdf-doctoolchain"]
docuum.backends = ["ubi:stepchowfun/docuum", "cargo:docuum", "asdf:bradym/asdf-docuum"]
dome.backends = ["asdf:jtakakura/asdf-dome"]
doppler.backends = ["asdf:takutakahashi/asdf-doppler"]
doppler.backends = ["ubi:DopplerHQ/cli[exe=doppler]", "asdf:takutakahashi/asdf-doppler"]
doppler.test = ["doppler --version", "v{{version}}"]
dotenv-linter.backends = ["ubi:dotenv-linter/dotenv-linter", "asdf:wesleimp/asdf-dotenv-linter"]
dotnet.backends = ["asdf:hensou/asdf-dotnet", "vfox:version-fox/vfox-dotnet"]
dotnet-core.backends = ["asdf:emersonsoares/asdf-dotnet-core"]
Expand All @@ -280,12 +288,13 @@ draft.backends = ["aqua:Azure/draft", "asdf:kristoflemmens/asdf-draft"]
driftctl.backends = ["aqua:snyk/driftctl", "asdf:nlamirault/asdf-driftctl"]
drone.backends = ["ubi:harness/drone-cli[exe=drone]", "asdf:virtualstaticvoid/asdf-drone"]
dt.backends = ["aqua:so-dang-cool/dt", "asdf:so-dang-cool/asdf-dt"]
dtm.backends = ["asdf:zhenyuanlau/asdf-dtm"]
dtm.backends = ["ubi:devstream-io/devstream[exe=dtm]", "asdf:zhenyuanlau/asdf-dtm"]
duf.backends = ["aqua:muesli/duf", "asdf:NeoHsu/asdf-duf"]
dust.backends = ["ubi:bootandy/dust", "asdf:looztra/asdf-dust"]
dvc.backends = ["asdf:fwfurtado/asdf-dvc"]
dyff.backends = ["aqua:homeport/dyff", "asdf:https://gitlab.com/wt0f/asdf-dyff"]
dynatrace-monaco.backends = ["asdf:nsaputro/asdf-monaco"]
dynatrace-monaco.backends = ["ubi:Dynatrace/dynatrace-configuration-as-code[exe=monaco]", "asdf:nsaputro/asdf-monaco"]
dynatrace-monaco.test = ["monaco version", "monaco version {{version}}"]
earthly.backends = ["aqua:earthly/earthly", "asdf:YR-ZR0/asdf-earthly"]
ecspresso.backends = ["aqua:kayac/ecspresso", "asdf:kayac/asdf-ecspresso"]
editorconfig-checker.backends = ["aqua:editorconfig-checker/editorconfig-checker", "asdf:gabitchov/asdf-editorconfig-checker"]
Expand Down Expand Up @@ -940,7 +949,8 @@ vultr.backends = ["ubi:vultr/vultr-cli", "asdf:ikuradon/asdf-vultr-cli"]
vultr.test = ["vultr-cli version", "Vultr-CLI v3.4.0"]
wasi-sdk.backends = ["asdf:coolreader18/asdf-wasi-sdk"]
wasm3.backends = ["asdf:tachyonicbytes/asdf-wasm3"]
wasm4.backends = ["asdf:jtakakura/asdf-wasm4"]
wasm4.backends = ["ubi:aduros/wasm4[exe=w4]", "asdf:jtakakura/asdf-wasm4"]
wasm4.test = ["w4 --version", "{{version}}"]
wasmer.backends = ["aqua:wasmerio/wasmer", "asdf:tachyonicbytes/asdf-wasmer"]
wasmtime.backends = ["aqua:bytecodealliance/wasmtime", "asdf:tachyonicbytes/asdf-wasmtime"]
watchexec.backends = ["ubi:watchexec/watchexec", "asdf:nyrst/asdf-watchexec"]
Expand Down
4 changes: 2 additions & 2 deletions src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct GithubRelease {
pub tag_name: String,
// pub name: Option<String>,
// pub body: Option<String>,
// pub prerelease: bool,
pub prerelease: bool,
// pub created_at: String,
// pub published_at: Option<String>,
pub assets: Vec<GithubAsset>,
Expand All @@ -34,7 +34,7 @@ pub fn list_releases(repo: &str) -> eyre::Result<Vec<GithubRelease>> {
if *env::MISE_LIST_ALL_VERSIONS {
while let Some(next) = next_page(&headers) {
let (more, h) = crate::http::HTTP_FETCH.json_headers::<Vec<GithubRelease>, _>(next)?;
releases.extend(more);
releases.extend(more.into_iter().filter(|r| !r.prerelease));
headers = h;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl PluginType {

pub static VERSION_REGEX: Lazy<regex::Regex> = Lazy::new(|| {
Regex::new(
r"(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-milestone|-alpha|-beta|[-\\.]pre|-next|([abc])[0-9]+|snapshot|SNAPSHOT|master)"
r"(?i)(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-milestone|-alpha|-beta|[-\\.]pre|-next|([abc])[0-9]+|snapshot|SNAPSHOT|master)"
)
.unwrap()
});
Expand Down
Loading