From 27e4aed40cb591b6fe5fcb09aa10eb0a2285357a Mon Sep 17 00:00:00 2001 From: yinheli Date: Sun, 22 Feb 2026 15:26:42 +0800 Subject: [PATCH] Fix ruff download --- .prototools | 2 +- ruff/plugin.toml | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.prototools b/.prototools index da05556..a2aa4af 100644 --- a/.prototools +++ b/.prototools @@ -27,7 +27,7 @@ oxlint = "0.2.12" pact_verifier_cli = "1.1.1" pixi = "0.25.0" rattler-build = "0.13.0" -ruff = "0.3.0" +ruff = "0.15.2" shellcheck = "0.10.0" shfmt = "3.8.0" task = "3.35.1" diff --git a/ruff/plugin.toml b/ruff/plugin.toml index 03634f0..aa9e7d0 100644 --- a/ruff/plugin.toml +++ b/ruff/plugin.toml @@ -5,20 +5,23 @@ type = "cli" git-url = "https://github.com/astral-sh/ruff" [platform.linux] -download-file = "ruff-{version}-{arch}-unknown-linux-{libc}.tar.gz" -checksum-file = "ruff-{version}-{arch}-unknown-linux-{libc}.tar.gz.sha256" +download-file = "ruff-{arch}-unknown-linux-{libc}.tar.gz" +checksum-file = "ruff-{arch}-unknown-linux-{libc}.tar.gz.sha256" +archive-prefix = "ruff-{arch}-unknown-linux-{libc}" [platform.macos] -download-file = "ruff-{version}-{arch}-apple-darwin.tar.gz" -checksum-file = "ruff-{version}-{arch}-apple-darwin.tar.gz.sha256" +download-file = "ruff-{arch}-apple-darwin.tar.gz" +checksum-file = "ruff-{arch}-apple-darwin.tar.gz.sha256" +archive-prefix = "ruff-{arch}-apple-darwin" [platform.windows] -download-file = "ruff-{version}-{arch}-pc-windows-msvc.zip" -checksum-file = "ruff-{version}-{arch}-pc-windows-msvc.zip.sha256" +download-file = "ruff-{arch}-pc-windows-msvc.zip" +checksum-file = "ruff-{arch}-pc-windows-msvc.zip.sha256" +archive-prefix = "ruff-{arch}-pc-windows-msvc" [install] -download-url = "https://github.com/astral-sh/ruff/releases/download/v{version}/{download_file}" -checksum-url = "https://github.com/astral-sh/ruff/releases/download/v{version}/{checksum_file}" +download-url = "https://github.com/astral-sh/ruff/releases/download/{version}/{download_file}" +checksum-url = "https://github.com/astral-sh/ruff/releases/download/{version}/{checksum_file}" [install.arch] x86 = "i686"