From 65f1d280afa1bac58933794c92e5a4cfdb6c3866 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Tue, 29 Dec 2020 13:57:09 +0100 Subject: [PATCH] [babashka/pod-registry#4] Fix issue with unzipping file --- src/babashka/pods/impl/resolver.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/babashka/pods/impl/resolver.clj b/src/babashka/pods/impl/resolver.clj index 4cc91c7..55d6000 100644 --- a/src/babashka/pods/impl/resolver.clj +++ b/src/babashka/pods/impl/resolver.clj @@ -55,11 +55,13 @@ (let [entry-name (.getName entry) new-path (.resolve output-path entry-name)] (if (.isDirectory entry) - (Files/createDirectories new-path (into-array [])) + (Files/createDirectories new-path ^"[Ljava.nio.file.attribute.FileAttribute;" + (into-array java.nio.file.attribute.FileAttribute [])) (Files/copy ^java.io.InputStream zis new-path ^"[Ljava.nio.file.CopyOption;" (into-array + java.nio.file.CopyOption [java.nio.file.StandardCopyOption/REPLACE_EXISTING])))) (recur)))))))