From 602199d4dea207471e7969c47b95161fb4602619 Mon Sep 17 00:00:00 2001 From: chaos Date: Sun, 9 Feb 2020 19:23:46 +0000 Subject: [PATCH] Close zipfile before removing --- src/cljsjs/boot_cljsjs/packaging.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cljsjs/boot_cljsjs/packaging.clj b/src/cljsjs/boot_cljsjs/packaging.clj index 4f13509..0afcb40 100644 --- a/src/cljsjs/boot_cljsjs/packaging.clj +++ b/src/cljsjs/boot_cljsjs/packaging.clj @@ -68,7 +68,8 @@ :let [target (io/file tmp (.getName entry))]] (io/make-parents target) (with-open [is (.getInputStream zipfile entry) ] - (io/copy is target)))) + (io/copy is target))) + (.close zipfile)) (-> fileset (c/rm archives) (c/add-resource tmp) c/commit!))))) (def decompress-deps '[[org.apache.commons/commons-compress "1.14"]])