From 061c5bcb45508f4ad28b5cf27b77e23198a1d6d7 Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:46:02 +0200 Subject: [PATCH] renovate: group lockfiles PRs --- .github/renovate.json5 | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 89862ba553144..eef583fe2d0b8 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -31,25 +31,40 @@ "dependencyDashboardApproval": false }, { - // Only maintain the Cargo lockfiles managed by update-lockfile.sh. + // Update all Cargo.lock files except library/Cargo.lock in one PR. "matchManagers": ["cargo"], "matchUpdateTypes": ["lockFileMaintenance"], - "enabled": false + "groupName": "Cargo lock file maintenance", + "commitMessageAction": "Cargo lock file maintenance" + }, + { + // Update library/Cargo.lock in a dedicated PR. + "matchManagers": ["cargo"], + "matchUpdateTypes": ["lockFileMaintenance"], + "matchFileNames": ["library/Cargo.lock"], + "groupName": "library lock file maintenance", + "commitMessageAction": "Library lock file maintenance" }, { + // These packages don't have a committed Cargo.lock file. "matchManagers": ["cargo"], "matchUpdateTypes": ["lockFileMaintenance"], "matchFileNames": [ - "Cargo.toml", - "library/Cargo.toml", - "src/tools/rustbook/Cargo.toml" + "library/rustc-std-workspace-*/Cargo.toml", ], - "enabled": true + "enabled": false + }, + { + // Update yarn.lock in a dedicated PR. + "matchManagers": ["npm"], + "matchUpdateTypes": ["lockFileMaintenance"], + "groupName": "Yarn lock file maintenance", + "commitMessageAction": "Yarn lock file maintenance" } ], - // Don't manage dependencies inside subtrees. They are updated upstream and - // synced in. See `src/doc/rustc-dev-guide/src/external-repos.md` for the list. "ignorePaths": [ + // Don't manage dependencies inside subtrees. They are updated upstream and + // synced in. See `src/doc/rustc-dev-guide/src/external-repos.md` for the list. "compiler/rustc_codegen_cranelift/**", "compiler/rustc_codegen_gcc/**", "library/compiler-builtins/**", @@ -59,6 +74,10 @@ "src/tools/clippy/**", "src/tools/miri/**", "src/tools/rust-analyzer/**", - "src/tools/rustfmt/**" + "src/tools/rustfmt/**", + + // Test manifests are fixtures; their versions and lockfiles may + // intentionally be part of the test input. + "tests/**", ] }