From 86f889372cf5d79d7a03746c50955953a8547b28 Mon Sep 17 00:00:00 2001 From: Rick Newton-Rogers Date: Tue, 21 Jan 2025 12:06:04 +0000 Subject: [PATCH] Update Plugins/GRPCProtobufGenerator/Plugin.swift Co-authored-by: George Barnett --- Plugins/GRPCProtobufGenerator/Plugin.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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