Skip to content

Commit 70975dc

Browse files
authored
Add conformance of an enum to String so that SwiftPM still builds on 5.4. (#3760)
1 parent 72bc79b commit 70975dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PackagePlugin/PublicAPI/Context.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public final class TargetBuildContext: Decodable {
105105
/// Internal
106106
internal let pluginAction: PluginAction
107107

108-
internal enum PluginAction: Decodable {
108+
internal enum PluginAction: String, Decodable {
109109
case createBuildToolCommands
110110
}
111111
}

Sources/SPMBuildCore/PluginInvocation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ struct PluginScriptRunnerInput: Codable {
400400
var path: String
401401
}
402402
var pluginAction: PluginAction
403-
enum PluginAction: Codable {
403+
enum PluginAction: String, Codable {
404404
case createBuildToolCommands
405405
}
406406
}

0 commit comments

Comments
 (0)