feat(renovate): add a regex manager for apm ref: pins #496
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: Mortis/Kamino#496
Reference in new issue
Block a user
Part of #194
Problem
Once the skills-source dependencies are pinned with
ref: <plugin>-v<x.y.z>, nothing proposes newer releases. Renovate's built-inapmmanager cannot help: it extracts only string entries and silently drops object-form ones, and this repo uses the object form because apm cannot resolve a subdirectory from the string form on this host.Out of scope: lock regeneration (separate issue) and the gate allowance (separate issue). This issue only has to propose the right
ref:change.Proposal
Add a
customManagersentry of type regex, matched onapm.yml(custom.regexis already inenabledManagers):git,path,ref. It capturespackageNamefrom thegit:URL,depNamefrom the plugin name inpath: plugins/<name>, andcurrentValueas only the version digits after<plugin>-v, so the prefix stays in the file and no auto-replace template is needed.git-tags, versioningsemver.^{{{depName}}}-v(?<version>\d+\.\d+\.\d+)$. If templating fromdepNamedoes not work at the pinned Renovate, fall back to one entry per plugin with a literal prefix.automerge: false, set explicitly, because the global default is automerge on (#208).git-tagshostRule for the host only if the dry run shows a failed lookup. The source repo is public.Acceptance criteria
renovate --platform=localat the Renovate version pinned in the Renovate workflow, with the three pins temporarily rolled back to older tags (gitgit-v1.3.8, mattpocockmattpocock-v0.4.0, planplan-v0.4.0), proposes the newest same-prefix tag for each. Check: the debug log, with the excerpt pasted on this issue.gitea-v*is never proposed forgit. Check: same log.ref:line. Check: the log's proposed diff.automerge: false, and therenovate.jsondescription is updated. Check: read the config.