diff --git a/Plugins/GRPCProtobufGenerator/Plugin.swift b/Plugins/GRPCProtobufGenerator/Plugin.swift index 8ff7c72..bfe13f2 100644 --- a/Plugins/GRPCProtobufGenerator/Plugin.swift +++ b/Plugins/GRPCProtobufGenerator/Plugin.swift @@ -83,10 +83,10 @@ struct GRPCProtobufGenerator { let protocPath = try deriveProtocPath(using: config, tool: tool) let protoDirectoryPaths: [String] - if !config.importPaths.isEmpty { - protoDirectoryPaths = config.importPaths - } else { + if config.importPaths.isEmpty { protoDirectoryPaths = [configFilePath.deletingLastPathComponent().absoluteStringNoScheme] + } else { + protoDirectoryPaths = config.importPaths } // unless *explicitly* opted-out