From 6da11575cab70139b2ae12d6355ed2814e9f487a Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Wed, 29 May 2024 13:11:03 +0200 Subject: [PATCH] Fix compile error on Windows --- Plugins/AWSLambdaPackager/Plugin.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/AWSLambdaPackager/Plugin.swift b/Plugins/AWSLambdaPackager/Plugin.swift index 3a8c8b20..4d8b5a09 100644 --- a/Plugins/AWSLambdaPackager/Plugin.swift +++ b/Plugins/AWSLambdaPackager/Plugin.swift @@ -205,7 +205,8 @@ struct AWSLambdaPackager: CommandPlugin { #if os(macOS) || os(Linux) let arguments = ["--junk-paths", "--symlinks", zipfilePath.string, relocatedArtifactPath.string, symbolicLinkPath.string] #else - throw Error.unsupportedPlatform("can't or don't know how to create a zip file on this platform") + let arguments = [String]() + throw Errors.unsupportedPlatform("can't or don't know how to create a zip file on this platform") #endif // run the zip tool