From fa5e8ca8e44c29b7c9036393ac32ff2fe8cc5d44 Mon Sep 17 00:00:00 2001 From: "Feng.YJ" <32027253+huiyifyj@users.noreply.github.com> Date: Wed, 16 Apr 2025 18:01:48 +0800 Subject: [PATCH] rustup(-gnu|-msvc): Fix regex patterns `checkver` field (#6569) - Updated the rustup `checkver.url` to script link. - Modified the regex pattern to match rustup version from the installation script. --- bucket/rustup-gnu.json | 4 ++-- bucket/rustup-msvc.json | 4 ++-- bucket/rustup.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bucket/rustup-gnu.json b/bucket/rustup-gnu.json index 6db6855ce9..82182e0252 100644 --- a/bucket/rustup-gnu.json +++ b/bucket/rustup-gnu.json @@ -36,8 +36,8 @@ ".rustup" ], "checkver": { - "url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", - "regex": "version = \"([\\d.]+)\"" + "url": "https://sh.rustup.rs", + "regex": "rustup-init ([\\d.]+) \\(" }, "autoupdate": { "architecture": { diff --git a/bucket/rustup-msvc.json b/bucket/rustup-msvc.json index 01388f0439..a2201304f5 100644 --- a/bucket/rustup-msvc.json +++ b/bucket/rustup-msvc.json @@ -43,8 +43,8 @@ ".rustup" ], "checkver": { - "url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", - "regex": "version = \"([\\d.]+)\"" + "url": "https://sh.rustup.rs", + "regex": "rustup-init ([\\d.]+) \\(" }, "autoupdate": { "architecture": { diff --git a/bucket/rustup.json b/bucket/rustup.json index 23537d8db6..d9717f8989 100644 --- a/bucket/rustup.json +++ b/bucket/rustup.json @@ -43,8 +43,8 @@ ".rustup" ], "checkver": { - "url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", - "regex": "version = \"([\\d.]+)\"" + "url": "https://sh.rustup.rs", + "regex": "rustup-init ([\\d.]+) \\(" }, "autoupdate": { "architecture": {