Skip to content

Commit 86eda5b

Browse files
committed
[Commands] Migrate: Don't attempt to cache manifest with temporary feature flags
The build system requested by the `swift package migrate` command is transitory and shouldn't be persisted. This would also make sure that the build plan is always available regardless of what builds happened before `swift package migrate` invocation. Resolves: rdar://152687084
1 parent d23e6a7 commit 86eda5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Commands/PackageCommands/Migrate.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ extension SwiftPackageCommand {
206206

207207
return try await swiftCommandState.createBuildSystem(
208208
traitConfiguration: .init(),
209+
// Don't attempt to cache manifests with temporary
210+
// feature flags added just for migration purposes.
211+
cacheBuildManifest: false,
209212
productsBuildParameters: destinationBuildParameters,
210213
toolsBuildParameters: toolsBuildParameters,
211214
// command result output goes on stdout

0 commit comments

Comments
 (0)