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
Verify that only targets that are manifest dependencies can be imported.
This change introduces a build plan verification step that attempts to detect scenarios where a target contains an `import` of another target in the package without declaring the imported target as a dependency in the manifest.
This is done via SwiftDriver's import-prescan capability which relies on libSwiftScan to quickly parse a target's sources and identify all `import`ed modules.
plan.diagnostics.emit(error:"Target \(target.target.name) imports another target (\(importedTargetsMissingDependency.first!)) in the package without declaring it a dependency.", location:nil)
512
+
}
513
+
}catch{
514
+
print("Unable to verify target imports due to: \(error)")
0 commit comments