From 4ad78235dc92e30d5da287c70ae651bab1f774f2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 18 Jan 2025 18:17:14 +0100 Subject: [PATCH] chore: Update renovate config for new haskell-cabal manager This manager was recently introduced to renovate and is now creating PRs for upper version bounds of our haskell dependencies. We still need to figure out how to deal with those in the best way, but some basic configuration can already be done. Here, we: - disallow any of those updates on the backbranches. - group GHC-provided dependencies together. - group packages from the hasql ecosystem together. - the fuzzyset dependency must be restricted to <0.3 - we know that already and did that on purpose. --- .github/renovate.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/renovate.json b/.github/renovate.json index a003bb6627..6f2d029e34 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -12,9 +12,29 @@ "enabled": false }, "packageRules": [ + { + "matchBaseBranches": [ "/^v[0-9]+/" ], + "matchManagers": ["haskell-cabal"], + "enabled": false + }, { "matchBaseBranches": [ "/^v[0-9]+/" ], "groupName": "all dependencies" + }, + { + "matchManagers": ["haskell-cabal"], + "matchPackageNames": ["base", "bytestring", "containers", "directory", "mtl", "parsec", "process", "text"], + "groupName": "GHC dependencies" + }, + { + "matchManagers": ["haskell-cabal"], + "matchPackageNames": ["hasql", "hasql-dynamic-statements", "hasql-notifications", "hasql-transaction", "hasql-pool"], + "groupName": "hasql" + }, + { + "matchManagers": ["haskell-cabal"], + "matchPackageNames": ["fuzzyset"], + "allowedVersions": "<0.3" } ] }