Skip to content

Add conformance of an enum to String so that SwiftPM still builds on 5.4 #3760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

abertelrud
Copy link
Contributor

Motivation:

#3712 accidentally made SwiftPM no longer compile using 5.4, which lacks automatic Codable synthesis for enums.

Modifications:

Make PluginAction in the PackagePlugin API conform to String as well as Decodable.

Result:

SwiftPM can build on 5.4.

@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud self-assigned this Sep 21, 2021
@abertelrud abertelrud force-pushed the eng/fix-break-on-swiftpm-5.4 branch from 63093fc to 5bdd16b Compare September 21, 2021 01:28
@abertelrud
Copy link
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud merged commit 70975dc into swiftlang:main Sep 21, 2021
@abertelrud abertelrud deleted the eng/fix-break-on-swiftpm-5.4 branch September 21, 2021 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants