-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(misconf): add missing variable as unknown #8683
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
Conversation
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
p.logger.Warn( | ||
"Variable values was not found in the environment or variable files. Evaluating may not work correctly.", | ||
log.String("variables", strings.Join(missingVars, ", ")), | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p.logger.Warn( | |
"Variable values was not found in the environment or variable files. Evaluating may not work correctly.", | |
log.String("variables", strings.Join(missingVars, ", ")), | |
) | |
} | |
p.logger.Warn( | |
"Variable values were not found in the environment or variable files. Evaluating may not work correctly.", | |
log.String("variables", strings.Join(missingVars, ", ")), | |
) | |
} |
if !ctyVal.IsKnown() || ctyVal.IsNull() { | ||
if ctyVal.IsNull() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any benefit to using .IsWhollyKnown()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not, since IsWhollyKnown
checks that complex types are fully known, such as lists or objects, which would prevent us from using only some elements of those types if needed. Also, I don't see the benefit of returning DynamicVal
when the value is unknown, as it results in type erasure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ on this change 👍
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
Description
See issue description
Related issues
Checklist