Skip to content

Commit cf35a26

Browse files
authored
[6.2][ModuleGraph] Bring back original check for implicit system libraries (#8825)
Cherry-pick of #8824 --- - Explanation: The original check was about system libraries only, the new one filters all of the implicit modules (including snippets) which is incorrect. The is a follow-up to #8812 - Main Branch PR: #8824 - Risk: Low - Reviewed By: @bnbarham - Testing: No testing was added, speculative fix. (cherry picked from commit 68d07f2)
1 parent c546bcd commit cf35a26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/PackageGraph/ModulesGraph+Loading.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,12 @@ private func createResolvedPackages(
680680
// Get all implicit system library dependencies in this package.
681681
let implicitSystemLibraryDeps = packageBuilder.dependencies
682682
.flatMap(\.modules)
683-
.filter(\.module.implicit)
683+
.filter {
684+
if case let systemLibrary as SystemLibraryModule = $0.module {
685+
return systemLibrary.implicit
686+
}
687+
return false
688+
}
684689

685690
let packageDoesNotSupportProductAliases = packageBuilder.package.doesNotSupportProductAliases
686691
let lookupByProductIDs = !packageDoesNotSupportProductAliases &&

0 commit comments

Comments
 (0)