From 8f00096a9f8b36996c3440a47113cfdf1f1dfa85 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Sat, 17 Oct 2026 12:40:05 +0800 Subject: [PATCH] chore(deps): group Tauri npm and Cargo updates into a single PR Add a packageRule that pulls @tauri-apps/* packages and tauri/tauri-* crates out of the generic npm and cargo groups into one shared "tauri" group, so frontend and backend halves of a Tauri upgrade are validated together. Pin tauri-plugin-mihomo by rev instead of branch so Renovate tracks it: branch-pinned git dependencies are skipped with skipReason git-dependency and never produce updates. With the rev pin the plugin joins the tauri group via digest updates. The rev is the commit already locked in Cargo.lock, so resolution is unchanged. --- Cargo.lock | 2 +- renovate.json | 5 +++++ src-tauri/Cargo.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 32c453c88..d1af5de8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7492,7 +7492,7 @@ dependencies = [ [[package]] name = "tauri-plugin-mihomo" version = "0.6.0" -source = "git+https://github.com/clash-verge-rev/tauri-plugin-mihomo?branch=main#7a03d16f4d39b1bb885b7babe66b9e153e34b615" +source = "git+https://github.com/clash-verge-rev/tauri-plugin-mihomo?rev=7a03d16f4d39b1bb885b7babe66b9e153e34b615#7a03d16f4d39b1bb885b7babe66b9e153e34b615" dependencies = [ "arc-swap", "clashmap", diff --git a/renovate.json b/renovate.json index edc0f4167..60b6615ee 100644 --- a/renovate.json +++ b/renovate.json @@ -45,6 +45,11 @@ "matchManagers": ["npm"], "groupName": "npm dependencies" }, + { + "description": "Update Tauri npm packages and Cargo crates together so frontend and backend stay in sync", + "matchPackageNames": ["@tauri-apps/**", "tauri", "tauri-*"], + "groupName": "tauri" + }, { "description": "Group all GitHub Actions updates into a single PR", "matchManagers": ["github-actions"], diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index a6b6a53fe..f8b2fe11b 100755 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -96,7 +96,7 @@ backon = { version = "1.6.0", features = ["tokio-sleep"] } tauri-plugin-http = "2.8.0" tracing = { workspace = true } tauri-plugin-devtools = { version = "2.2.2", optional = true } -tauri-plugin-mihomo = { git = "https://github.com/clash-verge-rev/tauri-plugin-mihomo", branch = "main" } +tauri-plugin-mihomo = { git = "https://github.com/clash-verge-rev/tauri-plugin-mihomo", rev = "7a03d16f4d39b1bb885b7babe66b9e153e34b615" } async-trait = "0.1.92" clash_verge_service_ipc = { git = "https://github.com/clash-verge-rev/clash-verge-service-ipc.git", tag = "v2.7.6", version = "2.7.6", features = [ "client",