fix: make renovate extractVersion actually apply to README tags and HCL sql pins #11

Merged
AzSiAz merged 1 commit from fix/renovate-readme-extractversion into main 2026-07-17 00:43:00 +02:00
Owner

Two bugs, both reproduced and verified with local renovate runs:

  1. The PGDG README image-tag manager applied a fixed
    extractVersionTemplate (^[^-+]+), which extracts 1.6.7 from
    postgresql-18-cron 1.6.7-3.pgdg13+1 while the image tag tracks the
    control default_version (1.6). Renovate rewrote READMEs to the
    nonexistent pg-cron:1.6.7-pg18-trixie tag (#10). Templates take
    precedence over captured groups, so the comment-level extractVersion
    is now honored via a conditional template, and the three pg-cron
    image-tag comments carry extractVersion=^(?\d+.\d+).

  2. metadata.hcl renovate comments escaped backslashes (\d), producing
    regexes that match a literal backslash and therefore never match any
    version: every sql pin was silently frozen. Proven by downgrading hll
    sql to 2.20 (no update proposed) and unfreezing (2.21 proposed).
    postgis was live damage: package had moved to 3.6.4 while sql stayed
    frozen at 3.6.3, so the published tag lied and the README pointed to
    a nonexistent 3.6.4 tag. All HCL comments now use single backslashes
    and postgis sql is aligned to 3.6.4 (control default_version verified
    in a rebuilt image).

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

Two bugs, both reproduced and verified with local renovate runs: 1. The PGDG README image-tag manager applied a fixed extractVersionTemplate (^[^-+]+), which extracts 1.6.7 from postgresql-18-cron 1.6.7-3.pgdg13+1 while the image tag tracks the control default_version (1.6). Renovate rewrote READMEs to the nonexistent pg-cron:1.6.7-pg18-trixie tag (#10). Templates take precedence over captured groups, so the comment-level extractVersion is now honored via a conditional template, and the three pg-cron image-tag comments carry extractVersion=^(?<version>\d+\.\d+). 2. metadata.hcl renovate comments escaped backslashes (\\d), producing regexes that match a literal backslash and therefore never match any version: every sql pin was silently frozen. Proven by downgrading hll sql to 2.20 (no update proposed) and unfreezing (2.21 proposed). postgis was live damage: package had moved to 3.6.4 while sql stayed frozen at 3.6.3, so the published tag lied and the README pointed to a nonexistent 3.6.4 tag. All HCL comments now use single backslashes and postgis sql is aligned to 3.6.4 (control default_version verified in a rebuilt image). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
AzSiAz self-assigned this 2026-07-17 00:34:21 +02:00
fix: make renovate extractVersion actually apply to README tags and HCL sql pins
All checks were successful
ci/woodpecker/pr/pr Pipeline was successful
9d171dc4ee
Two bugs, both reproduced and verified with local renovate runs:

1. The PGDG README image-tag manager applied a fixed
   extractVersionTemplate (^[^-+]+), which extracts 1.6.7 from
   postgresql-18-cron 1.6.7-3.pgdg13+1 while the image tag tracks the
   control default_version (1.6). Renovate rewrote READMEs to the
   nonexistent pg-cron:1.6.7-pg18-trixie tag (#10). Templates take
   precedence over captured groups, so the comment-level extractVersion
   is now honored via a conditional template, and the three pg-cron
   image-tag comments carry extractVersion=^(?<version>\d+\.\d+).

2. metadata.hcl renovate comments escaped backslashes (\\d), producing
   regexes that match a literal backslash and therefore never match any
   version: every sql pin was silently frozen. Proven by downgrading hll
   sql to 2.20 (no update proposed) and unfreezing (2.21 proposed).
   postgis was live damage: package had moved to 3.6.4 while sql stayed
   frozen at 3.6.3, so the published tag lied and the README pointed to
   a nonexistent 3.6.4 tag. All HCL comments now use single backslashes
   and postgis sql is aligned to 3.6.4 (control default_version verified
   in a rebuilt image).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
AzSiAz merged commit 3099ad7212 into main 2026-07-17 00:43:00 +02:00
AzSiAz deleted branch fix/renovate-readme-extractversion 2026-07-17 00:43:00 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AzSiAz/cnpg-extension-image!11
No description provided.