Fix checking optional group existence relative to the working dir (#1529)

This commit is contained in:
Steven Sheldon
2025-02-16 21:01:59 -08:00
committed by GitHub
parent 2f1fbf2a91
commit b1e03f0f46
+1 -1
View File
@@ -664,7 +664,7 @@ class SourceGenerator {
sourceFiles.append(sourceFile)
case .group:
if targetSource.optional && !Path(targetSource.path).exists {
if targetSource.optional && !path.exists {
// This group is missing, so if's optional just return an empty array
return []
}