From da2bcc5bdf3d365a5609fc03fe2f892c36d76c3e Mon Sep 17 00:00:00 2001 From: mikub Date: Sun, 31 Mar 2019 15:38:54 +0200 Subject: [PATCH] patching a bug in compliment library --- project.clj | 2 +- src/clj/titanoboa/dependencies.clj | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index dcb26f8..fa46419 100644 --- a/project.clj +++ b/project.clj @@ -40,7 +40,7 @@ [honeysql "0.9.1"] [postgresql/postgresql "9.4.1208-jdbc42-atlassian-hosted"] [io.titanoboa/titanoboa-java "0.1.0"] - [compliment "0.3.8"]] + [io.titanoboa/compliment "0.3.9"]] :plugins [[lein-libdir "0.1.1"] [lein-licenses "0.2.2"] diff --git a/src/clj/titanoboa/dependencies.clj b/src/clj/titanoboa/dependencies.clj index 8002681..a930a6a 100644 --- a/src/clj/titanoboa/dependencies.clj +++ b/src/clj/titanoboa/dependencies.clj @@ -7,7 +7,8 @@ [me.raynes.fs :as fs] [clojure.java.io :as io] [dynapath.util :as dp] - [dynapath.dynamic-classpath :as dc]) + [dynapath.dynamic-classpath :as dc] + [compliment.utils]) (:import (java.io File FileOutputStream))) (def dependencies-path-property "boa.server.dependencies.path") @@ -52,7 +53,8 @@ (apply require r)) (when-let [i (:import ext-coordinates)] (log/info "Importing external classes: " i) - (when (sequential? i) (mapv #(import %) i))))) + (when (sequential? i) (mapv #(import %) i))) + (compliment.utils/flush-caches))) ;;TODO there might be need for retry in case the file stays locked for longer? (defrecord DepsWatcherComponent [deps-file-path stop-callback-fn last-content-atom]