Skip to content

Commit eb5a41e

Browse files
authored
Merge pull request #8884 from Trinorae/fix-function-zip-deletion
Fix deletion of function.zip in amazon-lambda
2 parents b02cdaa + 834bcbd commit eb5a41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/FunctionZipProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void nativeZip(OutputTargetBuildItem target,
102102
Path zipDir = findNativeZipDir(target.getOutputDirectory());
103103

104104
Path zipPath = target.getOutputDirectory().resolve("function.zip");
105-
Files.delete(zipPath);
105+
Files.deleteIfExists(zipPath);
106106
try (ZipArchiveOutputStream zip = new ZipArchiveOutputStream(zipPath.toFile())) {
107107
String executableName = "bootstrap";
108108
if (zipDir != null) {

0 commit comments

Comments
 (0)