Skip to content

Commit ff7ea75

Browse files
committed
[Commands] Migrate: Exclude implicit modules from migration
Fixes and setting updates to such modules cannot be applied. Resolves: rdar://152689053
1 parent 7750aa9 commit ff7ea75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/Commands/PackageCommands/Migrate.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,12 @@ extension SwiftPackageCommand {
116116
} else {
117117
let graph = try await buildSystem.getPackageGraph()
118118
for buildDescription in buildPlan.buildModules
119-
where graph.isRootPackage(buildDescription.package) && buildDescription.module.type != .plugin
119+
where graph.isRootPackage(buildDescription.package)
120120
{
121+
let module = buildDescription.module
122+
guard module.type != .plugin, !module.implicit else {
123+
continue
124+
}
121125
modules.append(buildDescription)
122126
}
123127
}

0 commit comments

Comments
 (0)