diff --git a/docs/cli/generate/tool-stub.md b/docs/cli/generate/tool-stub.md index 522c3208c07..84f6272c72a 100644 --- a/docs/cli/generate/tool-stub.md +++ b/docs/cli/generate/tool-stub.md @@ -97,7 +97,7 @@ Examples: ``` Generate a tool stub for a single URL: -$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz" +$ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz" Generate a tool stub with platform-specific URLs: $ mise generate tool-stub ./bin/rg \ diff --git a/docs/dev-tools/tool-stubs.md b/docs/dev-tools/tool-stubs.md index 633c83da644..5c90bf96517 100644 --- a/docs/dev-tools/tool-stubs.md +++ b/docs/dev-tools/tool-stubs.md @@ -97,7 +97,7 @@ When using platform-specific URLs, the tool stub generator will append new platf Generate a tool stub for a tool distributed via HTTP: ```bash -mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz" +mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz" ``` This will: @@ -176,7 +176,7 @@ Running the generation command produces an executable stub like: version = "latest" bin = "bin/gh" -url = "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz" +url = "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz" checksum = "blake3:a1b2c3d4e5f6..." size = 12345678 ``` diff --git a/mise.usage.kdl b/mise.usage.kdl index dcff9f5a235..c9a74e617fe 100644 --- a/mise.usage.kdl +++ b/mise.usage.kdl @@ -1515,7 +1515,7 @@ to incrementally build cross-platform tool stubs. Examples: Generate a tool stub for a single URL: - $ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz" + $ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz" Generate a tool stub with platform-specific URLs: $ mise generate tool-stub ./bin/rg \ diff --git a/src/backend/asset_matcher.rs b/src/backend/asset_matcher.rs index 07ff2a20bf1..e78b54f5cff 100644 --- a/src/backend/asset_matcher.rs +++ b/src/backend/asset_matcher.rs @@ -1698,7 +1698,7 @@ abc123def456abc123def456abc123def456abc123def456abc123def456abcd tool-1.0.0-dar // Test Windows URL let url = - "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_windows_amd64.zip"; + "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_windows_amd64.zip"; let platform = detect_platform_from_url(url).unwrap(); assert_eq!(platform.os, AssetOs::Windows); assert_eq!(platform.arch, AssetArch::X64); diff --git a/src/cli/generate/tool_stub.rs b/src/cli/generate/tool_stub.rs index 6b8b324bc91..5897ab40828 100644 --- a/src/cli/generate/tool_stub.rs +++ b/src/cli/generate/tool_stub.rs @@ -858,7 +858,7 @@ static AFTER_LONG_HELP: &str = color_print::cstr!( r#"Examples: Generate a tool stub for a single URL: - $ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.336.0/gh_2.336.0_linux_amd64.tar.gz" + $ mise generate tool-stub ./bin/gh --url "https://github.com/cli/cli/releases/download/v2.96.0/gh_2.96.0_linux_amd64.tar.gz" Generate a tool stub with platform-specific URLs: $ mise generate tool-stub ./bin/rg \