diff --git a/Package.swift b/Package.swift index f3c04d4..1555949 100644 --- a/Package.swift +++ b/Package.swift @@ -25,7 +25,8 @@ let package = Package( dependencies: [ .product(name: "Swinject", package: "Swinject"), .product(name: "SwinjectAutoregistration", package: "SwinjectAutoregistration"), - ] + ], + exclude: ["ServiceCollection/Container+ServiceCollection.erb"] ), .executableTarget( name: "KnitCommand", diff --git a/Sources/KnitCodeGen/KnitDirectives.swift b/Sources/KnitCodeGen/KnitDirectives.swift index 222fd2a..db042fd 100644 --- a/Sources/KnitCodeGen/KnitDirectives.swift +++ b/Sources/KnitCodeGen/KnitDirectives.swift @@ -124,7 +124,7 @@ extension KnitDirectives { switch self { case let .unexpectedToken(token): return "Unexpected knit comment rule \(token)" - case let .duplicateSPI(name): + case .duplicateSPI: return "Duplicate @_spi annotations are not supported" } }