Skip to content

Commit 273f390

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 c2b15ff commit 273f390

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
@@ -114,8 +114,12 @@ extension SwiftPackageCommand {
114114
} else {
115115
let graph = try await buildSystem.getPackageGraph()
116116
for buildDescription in buildPlan.buildModules
117-
where graph.isRootPackage(buildDescription.package) && buildDescription.module.type != .plugin
117+
where graph.isRootPackage(buildDescription.package)
118118
{
119+
let module = buildDescription.module
120+
guard module.type != .plugin, !module.implicit else {
121+
continue
122+
}
119123
modules.append(buildDescription)
120124
}
121125
}

0 commit comments

Comments
 (0)