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.
This commit is contained in:
Feng.YJ 2025-04-16 18:01:48 +08:00 committed by GitHub
parent a5d3ddb630
commit fa5e8ca8e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -36,8 +36,8 @@
".rustup" ".rustup"
], ],
"checkver": { "checkver": {
"url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", "url": "https://sh.rustup.rs",
"regex": "version = \"([\\d.]+)\"" "regex": "rustup-init ([\\d.]+) \\("
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {

View File

@ -43,8 +43,8 @@
".rustup" ".rustup"
], ],
"checkver": { "checkver": {
"url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", "url": "https://sh.rustup.rs",
"regex": "version = \"([\\d.]+)\"" "regex": "rustup-init ([\\d.]+) \\("
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {

View File

@ -43,8 +43,8 @@
".rustup" ".rustup"
], ],
"checkver": { "checkver": {
"url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml", "url": "https://sh.rustup.rs",
"regex": "version = \"([\\d.]+)\"" "regex": "rustup-init ([\\d.]+) \\("
}, },
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {