Skip to content

Commit d8aeb85

Browse files
committed
Handle missing deps.local.edn
1 parent 0660ba7 commit d8aeb85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lambdaisland/launchpad.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@
250250
~{:aliases (mapv keyword aliases)
251251
:include-local-roots? true
252252
:basis-fn 'lambdaisland.launchpad.deps/basis
253-
:watch-paths ['(lambdaisland.classpath.watch-deps/canonical-path "deps.local.edn")]
253+
:watch-paths (when (.exists (io/file "deps.local.edn"))
254+
;; FIXME: this means we don't "see" deps.local.edn if it
255+
;; gets created after launchpad started, we can do
256+
;; better than that.
257+
['(lambdaisland.classpath.watch-deps/canonical-path "deps.local.edn")]
258+
[])
254259
:launchpad/extra-deps `'~(:extra-deps <>)}))))
255260

256261
(defn watch-dotenv [ctx]

0 commit comments

Comments
 (0)