fix(bun): switch to matchDepNames for runtime version bundle (#122)
CD / Release (push) Successful in 19s

In logs, we see that the actual package name for the docker Dependency is our cache. This PR tries to match by depName instead of packageName.

```plain
{
             "deps": [
               {
                 "depName": "Bun",
                 "packageName": "bun",
                 "currentValue": "1.3.6",
                 "datasource": "npm",
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "1.3.14",
                     "newValue": "1.3.14",
                     "hasAttestation": false,
                     "releaseTimestamp": "2026-05-13T04:02:43.309Z",
                     "newVersionAgeInDays": 85,
                     "newMajor": 1,
                     "newMinor": 3,
                     "newPatch": 14,
                     "updateType": "patch",
                     "isBreaking": false,
                     "libYears": 0.3289416609271943,
                     "branchName": "renovate/bun-version"
                   }
                 ],
                 "versioning": "npm",
                 "warnings": [],
                 "sourceUrl": "https://github.com/oven-sh/bun",
                 "registryUrl": "https://registry.npmjs.org",
                 "homepage": "https://bun.com",
                 "mostRecentTimestamp": "2026-05-13T04:02:43.309Z",
                 "isAbandoned": false,
                 "currentVersion": "1.3.6",
                 "currentVersionTimestamp": "2026-01-13T02:30:59.090Z",
                 "currentVersionAgeInDays": 205,
                 "isSingleVersion": true,
                 "fixedVersion": "1.3.6"
               }
             ],
             "packageFile": ".bun-version"
           }
         ],
         "dockerfile": [
           {
             "deps": [
               {
                 "depName": "docker.io/oven/bun",
                 "packageName": "docker-cache.gitea.t00n.de/oven/bun",
                 "currentValue": "1.3.6",
                 "currentDigest": "sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a",
                 "datasource": "docker",
                 "replaceString": "docker.io/oven/bun:1.3.6@sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a",
                 "autoReplaceStringTemplate": "docker.io/oven/bun:{{#if newValue}}{{newValue}}{{/if}}@{{#if newDigest}}{{newDigest}}{{/if}}",
                 "depType": "final",
                 "updates": [
                   {
                     "bucket": "non-major",
                     "newVersion": "1.3.14",
                     "newValue": "1.3.14",
                     "newMajor": 1,
                     "newMinor": 3,
                     "newPatch": 14,
                     "updateType": "patch",
                     "isBreaking": false,
                     "pendingChecks": true,
                     "newDigest": "sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4",
                     "branchName": "renovate/docker.io-oven-bun-1.x"
                   }
                 ],
                 "versioning": "docker",
                 "warnings": [],
                 "sourceUrl": "https://github.com/oven-sh/bun",
                 "registryUrl": "https://docker-cache.gitea.t00n.de",
                 "lookupName": "oven/bun",
                 "currentVersion": "1.3.6",
                 "isSingleVersion": true,
                 "fixedVersion": "1.3.6"
               }
             ],
             "packageFile": "Dockerfile"
           }
         ],
```

Reviewed-on: #122
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #122.
This commit is contained in:
2026-08-06 22:03:04 +02:00
committed by t.behrendt
parent 3e289e256e
commit 3b071a24e4
+1 -1
View File
@@ -27,7 +27,7 @@
"groupName": "bun version", "groupName": "bun version",
"groupSlug": "bun-version", "groupSlug": "bun-version",
"matchManagers": ["bun-version", "dockerfile"], "matchManagers": ["bun-version", "dockerfile"],
"matchPackageNames": ["bun", "docker.io/oven/bun"] "matchDepNames": ["Bun", "docker.io/oven/bun"]
} }
] ]
} }