You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: command/testdata/validate-invalid/incorrectmodulename/output.json
+6-24Lines changed: 6 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"valid": false,
3
3
"error_count": 6,
4
-
"warning_count": 1,
4
+
"warning_count": 0,
5
5
"diagnostics": [
6
6
{
7
7
"severity": "error",
@@ -40,9 +40,9 @@
40
40
}
41
41
},
42
42
{
43
-
"severity": "warning",
44
-
"summary": "Interpolation-only expressions are deprecated",
45
-
"detail": "Terraform 0.11 and earlier required all non-constant expressions to be provided via interpolation syntax, but this pattern is now deprecated. To silence this warning, remove the \"${ sequence from the start and the }\" sequence from the end of this expression, leaving just the inner expression.\n\nTemplate interpolation syntax is still used to construct strings from expressions when the template includes multiple interpolation sequences or a mixture of literal strings and interpolations. This deprecation applies only to templates that consist entirely of a single interpolation sequence.",
Copy file name to clipboardExpand all lines: command/testdata/validate-invalid/missing_var/output.json
+5-23Lines changed: 5 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,8 @@
1
1
{
2
2
"valid": false,
3
3
"error_count": 1,
4
-
"warning_count": 1,
4
+
"warning_count": 0,
5
5
"diagnostics": [
6
-
{
7
-
"severity": "warning",
8
-
"summary": "Interpolation-only expressions are deprecated",
9
-
"detail": "Terraform 0.11 and earlier required all non-constant expressions to be provided via interpolation syntax, but this pattern is now deprecated. To silence this warning, remove the \"${ sequence from the start and the }\" sequence from the end of this expression, leaving just the inner expression.\n\nTemplate interpolation syntax is still used to construct strings from expressions when the template includes multiple interpolation sequences or a mixture of literal strings and interpolations. This deprecation applies only to templates that consist entirely of a single interpolation sequence.",
// hclsyntax.TemplateWrapExpr is a special node type used by HCL only
185
-
// for the situation where a template is just a single interpolation,
186
-
// so we don't need to do anything further to distinguish that
187
-
// situation. ("normal" templates are *hclsyntax.TemplateExpr.)
188
-
189
-
constsummary="Interpolation-only expressions are deprecated"
190
-
switchw.currentContext() {
191
-
casewarnForDeprecatedInterpolationsObjKey:
192
-
// This case requires a different resolution in order to retain
193
-
// the same meaning, so we have a different detail message for
194
-
// it.
195
-
diags=append(diags, &hcl.Diagnostic{
196
-
Severity: hcl.DiagWarning,
197
-
Summary: summary,
198
-
Detail: "Terraform 0.11 and earlier required all non-constant expressions to be provided via interpolation syntax, but this pattern is now deprecated.\n\nTo silence this warning, replace the \"${ opening sequence and the }\" closing sequence with opening and closing parentheses respectively. Parentheses are needed here to mark this as an expression to be evaluated, rather than as a literal string key.\n\nTemplate interpolation syntax is still used to construct strings from expressions when the template includes multiple interpolation sequences or a mixture of literal strings and interpolations. This deprecation applies only to templates that consist entirely of a single interpolation sequence.",
199
-
Subject: node.Range().Ptr(),
200
-
})
201
-
default:
202
-
diags=append(diags, &hcl.Diagnostic{
203
-
Severity: hcl.DiagWarning,
204
-
Summary: summary,
205
-
Detail: "Terraform 0.11 and earlier required all non-constant expressions to be provided via interpolation syntax, but this pattern is now deprecated. To silence this warning, remove the \"${ sequence from the start and the }\" sequence from the end of this expression, leaving just the inner expression.\n\nTemplate interpolation syntax is still used to construct strings from expressions when the template includes multiple interpolation sequences or a mixture of literal strings and interpolations. This deprecation applies only to templates that consist entirely of a single interpolation sequence.",
206
-
Subject: node.Range().Ptr(),
207
-
})
208
-
}
209
-
}
210
-
211
-
// Note the context of the current node for when we potentially visit
0 commit comments