Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(manager/terragrunt): add missing registry host #26681

Merged

Conversation

ismtabo
Copy link
Contributor

@ismtabo ismtabo commented Jan 16, 2024

Changes

Added registry url to extraction result at Terragrunt Manager when source uses tfr protocol and contains custom registry hostname.

Now, if the source link in a Terragrunt file using tfr:// protocol contains a hostname it is included in the extraction result inside the registryUrls property. For example, given the following terraform block:

terraform {
  source = "tfr://registry.domain.com/abc/helloworld/aws?version=1.0.0"
}

The extraction of dependencies will produce the following dependency:

{
  "depType": "terragrunt",
  "depName": "abc/helloworld/aws",
  "currentValue": "1.0.0",
  "datasource": "terraform-module",
  "registryUrls": [
    "https://registry.domain.com"
  ]
}

Context

Closes: #26668

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Sorry, something went wrong.

ismtabo and others added 2 commits January 16, 2024 17:28

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
Added registry url to extraction result at Terragrunt Manager when
source uses tfr protocol and contains custom registry hostname.

Fixes: renovatebot#26668

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
@rarkins rarkins enabled auto-merge January 16, 2024 17:04
@rarkins rarkins added this pull request to the merge queue Jan 16, 2024
Merged via the queue into renovatebot:main with commit 5440aab Jan 16, 2024
@ismtabo ismtabo deleted the fix/missing-terragrunt-source-registry branch January 16, 2024 17:17
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.137.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Comment on lines +75 to +77
if (tfrVersionMatch.groups.registry) {
dep.registryUrls = [`https://${tfrVersionMatch.groups.registry}`];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only be set if not default registry

zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 22, 2024

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 24, 2024

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 24, 2024

Verified

This commit was signed with the committer’s verified signature.
soyuka Antoine Bluchet
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom registry missing from terragrunt tfr extract result
4 participants