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
panic(fmt.Sprintf("hclparse.AutoIncludeDependencyPaths: fs is nil; a vfs.FS is required to read the generated %s file and extract dependency paths for DAG construction (unitDir=%q)", AutoIncludeFile, unitDir))
185
+
panic(fmt.Sprintf("hclparse.AutoIncludeDependencyPaths: fs is nil(unitDir=%q)", unitDir))
186
186
}
187
187
188
188
ifunitDir=="" {
189
-
panic(fmt.Sprintf("hclparse.AutoIncludeDependencyPaths: unitDir is empty (got %q); unitDir must be the generated unit directory containing %s", unitDir, AutoIncludeFile))
189
+
panic("hclparse.AutoIncludeDependencyPaths: unitDir is empty")
panic(fmt.Sprintf("hclparse.GenerateAutoIncludeFile: fs is nil; a vfs.FS is required to create targetDir and write the generated autoinclude file (targetDir=%q)", targetDir))
40
+
panic(fmt.Sprintf("hclparse.GenerateAutoIncludeFile: fs is nil(targetDir=%q, sourceFile=%q)", targetDir, resolvedSourceFile(resolved)))
41
41
}
42
42
43
43
iftargetDir=="" {
44
-
panic(fmt.Sprintf("hclparse.GenerateAutoIncludeFile: targetDir is empty (got %q); targetDir is the generated unit directory where %s will be written", targetDir, AutoIncludeFile))
44
+
panic(fmt.Sprintf("hclparse.GenerateAutoIncludeFile: targetDir is empty (sourceFile=%q)", resolvedSourceFile(resolved)))
45
45
}
46
46
47
47
ifresolved==nil {
@@ -252,3 +252,14 @@ func writeNonDependencyContent(outBody *hclwrite.Body, body *hclsyntax.Body, src
panic(fmt.Sprintf("hclparse.ParseStackFile: fs is nil; a vfs.FS is required to read included stack files (e.g. pass vfs.NewOSFS() for disk or vfs.NewMemMapFS() for tests) (filename=%q)", filename))
71
+
panic(fmt.Sprintf("hclparse.ParseStackFile: fs is nil (filename=%q)", filename))
72
72
}
73
73
74
74
ifinput==nil {
75
-
panic("hclparse.ParseStackFile: input is nil; caller must provide a *ParseStackFileInput with Src and StackDir set")
75
+
panic("hclparse.ParseStackFile: input is nil")
76
76
}
77
77
78
78
ifinput.StackDir=="" {
79
-
panic(fmt.Sprintf("hclparse.ParseStackFile: input.StackDir is empty (got %q); StackDir is required to resolve relative include paths and compute generated unit directories (filename=%q)", input.StackDir, input.Filename))
79
+
panic(fmt.Sprintf("hclparse.ParseStackFile: input.StackDir is empty (filename=%q)", input.Filename))
panic(fmt.Sprintf("hclparse.ParseStackFileFromPath: fs is nil; a vfs.FS is required to read terragrunt.stack.hcl from disk (pass vfs.NewOSFS() or vfs.NewMemMapFS()) (stackDir=%q)", stackDir))
160
+
panic(fmt.Sprintf("hclparse.ParseStackFileFromPath: fs is nil (stackDir=%q)", stackDir))
161
161
}
162
162
163
163
ifstackDir=="" {
164
-
panic(fmt.Sprintf("hclparse.ParseStackFileFromPath: stackDir is empty (got %q); stackDir is required to locate terragrunt.stack.hcl and resolve include paths", stackDir))
164
+
panic("hclparse.ParseStackFileFromPath: stackDir is empty")
panic(fmt.Sprintf("hclparse.UnitPathsFromStackDir: fs is nil; a vfs.FS is required to read the stack file and enumerate its generated unit directories (stackDir=%q)", stackDir))
191
+
panic(fmt.Sprintf("hclparse.UnitPathsFromStackDir: fs is nil (stackDir=%q)", stackDir))
192
192
}
193
193
194
194
ifstackDir=="" {
195
-
panic(fmt.Sprintf("hclparse.UnitPathsFromStackDir: stackDir is empty (got %q); stackDir is required to locate terragrunt.stack.hcl and compute generated unit paths", stackDir))
195
+
panic("hclparse.UnitPathsFromStackDir: stackDir is empty")
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: fs is nil; a vfs.FS is required to read the nested stack's terragrunt.stack.hcl (stackSourceDir=%q, stackGenDir=%q)", stackSourceDir, stackGenDir))
232
+
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: fs is nil (stackSourceDir=%q, stackGenDir=%q)", stackSourceDir, stackGenDir))
233
233
}
234
234
235
235
ifstackSourceDir=="" {
236
-
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: stackSourceDir is empty (got %q); this is the directory containing the nested stack's source terragrunt.stack.hcl (stackGenDir=%q)", stackSourceDir, stackGenDir))
236
+
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: stackSourceDir is empty (stackGenDir=%q)", stackGenDir))
237
237
}
238
238
239
239
ifstackGenDir=="" {
240
-
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: stackGenDir is empty (got %q); this is the target directory where the nested stack's units will be generated (stackSourceDir=%q)", stackGenDir, stackSourceDir))
240
+
panic(fmt.Sprintf("hclparse.DiscoverStackChildUnits: stackGenDir is empty (stackSourceDir=%q)", stackSourceDir))
0 commit comments