From 09b04107f37ce35319afb800e2b3499b940c2755 Mon Sep 17 00:00:00 2001 From: sunerpy Date: Fri, 27 Nov 2026 16:21:33 +0800 Subject: [PATCH] ci(deps): keep grammar crates in their own Dependabot group The single cargo group put every update, grammar crates included, into one pull request. #345 showed the cost: its tree-sitter-dart 0.3.0 bump changed extraction (batch_coverage_languages' dart case failed on Windows Tests) without an extraction-version move, and it rewrote the deliberate exact pins of tree-sitter-swift (=0.7.3) and tree-sitter-scala (=0.26.3). - A `tree-sitter` group takes `tree-sitter*` and comes first; the general `cargo` group excludes `tree-sitter*`, so a grammar crate never lands in it (Dependabot assigns a dependency to the first group it matches, and a dependency matching an exclude pattern is left out). - tree-sitter-swift and tree-sitter-scala are ignored: their exact pins move by hand together with the extraction change each one needs. An ignore also covers security updates for those two crates. The github-actions group is unchanged. --- .github/dependabot.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 818df21f..1f404918 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,10 +5,24 @@ updates: directory: / schedule: interval: weekly + # tree-sitter-swift and tree-sitter-scala are pinned exactly (`=` in + # crates/codegraph-extract/Cargo.toml) and move by hand with the extraction + # change they need. + ignore: + - dependency-name: tree-sitter-swift + - dependency-name: tree-sitter-scala groups: + # Grammar crates change what is extracted, so they need an + # extraction-version decision and land on their own, apart from the + # other cargo updates. A dependency joins the first group it matches. + tree-sitter: + patterns: + - "tree-sitter*" cargo: patterns: - "*" + exclude-patterns: + - "tree-sitter*" - package-ecosystem: github-actions directory: /