From fc65c3cc4243148a43ad59f97378da4819a9ebca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Sat, 12 Oct 2024 00:24:55 +0200 Subject: [PATCH] Fix https://github.com/swift-server/swift-aws-lambda-runtime/issues/409 Direct use of executable URL --- Plugins/AWSLambdaPackager/PluginUtils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/AWSLambdaPackager/PluginUtils.swift b/Plugins/AWSLambdaPackager/PluginUtils.swift index c6a1c24d..52d1b2be 100644 --- a/Plugins/AWSLambdaPackager/PluginUtils.swift +++ b/Plugins/AWSLambdaPackager/PluginUtils.swift @@ -27,7 +27,7 @@ struct Utils { logLevel: ProcessLogLevel ) throws -> String { if logLevel >= .debug { - print("\(executable.description) \(arguments.joined(separator: " "))") + print("\(executable.path()) \(arguments.joined(separator: " "))") } let fd = dup(1) @@ -83,7 +83,7 @@ struct Utils { let process = Process() process.standardOutput = pipe process.standardError = pipe - process.executableURL = URL(fileURLWithPath: executable.description) + process.executableURL = executable process.arguments = arguments if let workingDirectory = customWorkingDirectory { process.currentDirectoryURL = URL(fileURLWithPath: workingDirectory.path())