Skip to content

Commit

Permalink
feat: migrate more tools away from asdf (#3205)
Browse files Browse the repository at this point in the history
* feat: migrate more tools away from asdf

* [autofix.ci] apply automated fixes

* feat: migrate more tools away from asdf

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
jdx and autofix-ci[bot] authored Nov 26, 2024
1 parent 551584c commit b200169
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 23 deletions.
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

0 comments on commit b200169

Please sign in to comment.