canonical / canonical/platform-engineering-deployment-modules

Renovate regex stops tracking module refs with multi-word tag prefixes

Open Beginner friendly
#208 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
1
Forks
3
Avg merge
23h 12m
Merged PRs (30d)
102

Description

## Problem
`renovate.json` parses Terraform module `?ref=` tags with:
~~~
versioning: regex:^(?:[a-z]+-)?rev(?\d+)$
~~~

`(?:[a-z]+-)?` allows **at most one** hyphenated prefix segment. Any charm repo
whose tags use two or more falls out of the pattern (ex: gopkg-charmed-rev1 or ingress-configurator-rev103), and Renovate stops offering
updates for that dependency

## Proposed fix

~~~diff
- "versioning": "regex:^(?:[a-z]+-)?rev(?\\d+)$"
+ "versioning": "regex:^(?:[a-z0-9]+-)*rev(?\\d+)$"
~~~

`*` instead of `?` allows any number of prefix segments; `[a-z0-9]` covers names with numbers. I am not sure if there is any rule/compliance that prevents this or not.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open renovate.json and inspect the versioning regex used for Terraform module ?ref= tags. Check it against examples such as gopkg-charmed-rev1 and ingress-configurator-rev103, including prefixes with numbers. Done means Renovate recognizes these multi-segment tags and can offer dependency updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
terraform
Domain
infrastructure
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.