Git-Tags Terraform Module regex incorrectly parses domains containing ".git" leading to failed source module resolution #44298
Unanswered
Chickenhen
asked this question in
Request Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
GitLab (.com or self-hosted)
Which version of Renovate are you using?
43.247.1
Please tell us more about your question or problem
The regex being used to identify ".git" within git-tags based module references is wiping out any instances of .git in the source URL;
This means source URLs which contain the keyword ".git" in the domain, are getting incorrectly extracted; so the extractor is unable to find the latest version of the git-tags referenced module.
gets resolved\extracted to
renovate/lib/modules/manager/terraform/extractors/others/modules.ts
Lines 21 to 23 in 9ad7875
renovate/lib/modules/manager/terraform/extractors/others/modules.ts
Lines 110 to 111 in 9ad7875
Example fix; is to scope the .git to only replace if it's at the end (assuming that's the intended behaviour)
this was introduced with : c841ea1
suggest update the .specs file to include additional tests that feature ".git" in the url components of the referenced module path names
Example Terraform Module reference
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions