-
Notifications
You must be signed in to change notification settings - Fork 952
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
Terragrunt source results in error #5841
Comments
👋 I'm not a terraform expert, but as best I understand it, Terragrunt is a wrapper around Terraform... so will your manifest above not be supported under native Terraform? IE, does it require Terragrunt in order to read that syntax? I agree that it would be better to throw a nicer error, provided that we definitively knew under native Terraform that this wasn't a registry source... I doubt we'll get to this anytime soon, but as you know a PR is always welcome. 😄 |
Yes, it is a wrapper and is a terragrunt function, so native terraform wouldn't evaluate it, but if it's an unknown source then dependabot should report error and continue processing IMHO. Plus, dependabot does support terragrunt at least partially. In this case it is also incorrectly identifying it as a registry source, which is a bug as well. I think this is a two part fix, identify it as an unknown source and report "error" and continue. As this is valid terragrunt and not truly an error, it is just that dependabot cannot evaluate it. We do plan on working a PR for this as our schedule allows. |
After more thought and conversations, we have determined terraform does not allow interpolation for sources. Terragrunt supports interpolation more widely for sources and this is the issue. There are some cases where the terragrunt interpolation would work but that type would be detected and returned prior to reaching our approach. We will begin work on a PR as soon as possible. |
Is there an existing issue for this?
Package ecosystem
Terraform
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
No response
Updated dependency
No response
What you expected to see, versus what you actually saw
What I expected: The terragrunt source to be evaluated and if unable to, an error message would be logged and dependabot would continue processing the remainder of the reposititory.
What I saw: The path was incorrectly thought to be a registry source and found invalid. Dependabot threw an error and stopped processing the remainder of the repository.
Native package manager behavior
Terragrunt will evaluate the path from the method and use it as a local path.
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
The text was updated successfully, but these errors were encountered: