-
Notifications
You must be signed in to change notification settings - Fork 359
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
Panic: cannot refine an unknown value of an unknown type #1831
Comments
Please note, the issue is reported only when I use a custom terraform module that has the following values: external_dns = {
enabled = true
domain_names = keys(module.base_dns_zone.route53_zone_name)
domain_name_arns = values(module.base_dns_zone.route53_zone_zone_arn) # <---- this line is what causing the problem
} If I omit the value for Below is the variable "external_dns" {
type = object({
enabled = bool
domain_names = list(string)
domain_name_arns = optional(list(string), [])
helm_version = optional(string, "1.13.0")
})
description = "External DNS configuration"
default = null
} |
Thank you for reporting this. This seems like a bug. In TFLint an expression like Line 189 in dcc49ce
Next, HCL v2.17, which is used in TFLint v0.47, introduces the concept of refinements. This seems to apply implicit refinements when default values such as Unfortunately refinements for unknown values of unknown types don't seem to be supported. I'm not sure how to fix this, but it might be a good idea to fix the HCL to not apply the refinement in case of unknown values of unknown types. The current workaround is to downgrade to TFLint v0.46.1. |
The upstream bug is fixed in hashicorp/hcl#625 |
Thank you @wata727 for the fix. |
Summary
TFLint started crashing after we upgraded from
0.46.1
to0.47.0
Command
tflint --config=/infra/.tflint.hcl -f compact
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.47.0
Terraform Version
1.5.2
Operating System
The text was updated successfully, but these errors were encountered: