Skip to content

Commit 68d609e

Browse files
committed
Update PackageCollectionModel.V1.ProductType init extension for .extension.plugin renaming
Fix a build failure caused by SwiftPM upstream renaming `ProductType.extension` to `ProductType.plugin` in swiftlang/swift-package-manager#3311. Note that SwiftPM's `PackageCollectionModel.V1` hasn't gotten this rename yet and still has `ProductType.extension`, which seems like a mismatch that probably needs to be resolved upstream (and then again here).
1 parent b213535 commit 68d609e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageCollectionGenerator/PackageCollectionGenerate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ extension PackageCollectionModel.V1.ProductType {
320320
self = .library(.init(from: libraryType))
321321
case .executable:
322322
self = .executable
323-
case .extension:
323+
case .plugin:
324324
self = .extension
325325
case .test:
326326
self = .test

0 commit comments

Comments
 (0)