Carry resolved filesystem facts through loads
This commit is contained in:
@@ -165,6 +165,10 @@ func validateNativeDirectories(access *filesystemAccess, basePath, mainPath stri
|
||||
}
|
||||
|
||||
func importFilesystem(source Source, context *FilesystemContext, main parsedSource) (rootPath, basePath, mainPath string, diagnostic *Diagnostic) {
|
||||
if main.source == nil || main.document == nil {
|
||||
value := importDiagnostic(CodeImportInvalid, "imports require a selected configuration source", nil)
|
||||
return "", "", "", &value
|
||||
}
|
||||
resolved, diagnostic := resolveHostFilesystemContext(source, context, main, nil)
|
||||
if diagnostic != nil {
|
||||
return "", "", "", diagnostic
|
||||
|
||||
Reference in New Issue
Block a user