Skip to content

Commit 1533979

Browse files
rubensworksclaude
andcommitted
Pin Renovate Maven lookups to the registry hosting each package
Renovate's Maven manager appends Maven Central to every Maven dependency regardless of settings.xml, and the datasource queries every registry for every dep. When Central answers 429, the datasource raises an ExternalHostError and the whole run aborts before any lookup or update. This is what has been aborting runs in packtests since around Sep 6, and this repo is exposed to the same failure even though its settings.xml only declares GitHub Packages. - Restrict org.cyclops.* lookups to our GitHub Packages registry, so Central is no longer in the lookup path at all. - Add a hostRule for repo.maven.apache.org as a backstop. Its description records that it does not actually suppress the Central abort, since the Maven datasource throws unconditionally for that host. - Migrate matchPackagePrefixes to matchPackageNames in "Cyclops packages", which Renovate was reporting as a needed config migration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N6hkW22Va1tk2EqxDguWG4
1 parent 6da5cc9 commit 1533979

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎renovate.json‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
{
99
"matchHost": "https://maven.pkg.github.com/CyclopsMC/packages",
1010
"token": "{{ secrets.RENOVATE_GITHUB_COM_TOKEN }}"
11+
},
12+
{
13+
"description": "Backstop only. The registryUrls rule below is what actually keeps Central out of the lookup path, since the Maven datasource raises an ExternalHostError on a Central 429 regardless of these flags.",
14+
"matchHost": "repo.maven.apache.org",
15+
"abortOnError": false,
16+
"abortIgnoreStatusCodes": [429]
1117
}
1218
],
1319
"packageRules": [
@@ -22,9 +28,15 @@
2228
"automergeType": "branch",
2329
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(-(?<build>\\d+))?$"
2430
},
31+
{
32+
"description": "Cyclops mods are only published to our GitHub Packages registry",
33+
"matchManagers": ["maven"],
34+
"matchPackageNames": ["org.cyclops.{/,}**"],
35+
"registryUrls": ["https://maven.pkg.github.com/CyclopsMC/packages"]
36+
},
2537
{
2638
"matchManagers": ["maven"],
27-
"matchPackagePrefixes": ["org.cyclops."],
39+
"matchPackageNames": ["org.cyclops.{/,}**"],
2840
"groupName": "Cyclops packages"
2941
}
3042
],

0 commit comments

Comments
 (0)