Fork me on GitHub
#cursive
<
2017-09-10
>
Oliver George03:09:12

Alex's clojure-install work seems to offer a much simpler arrangement for project setup. A single deps.edn file can define dependencies and allow command line repl and clojure.main execution.

Oliver George03:09:40

I presume there will be times when it is a sensible alternative to lein/boot

Oliver George03:09:22

For the moment, cursive wouldn't support this because it doesn't know deps or source files specified in the deps.edn file.

Oliver George03:09:38

e.g.

{:deps {org.clojure/clojure {:type :mvn :version "1.9.0-alpha20"}
        my/src {:type :file :path "src"}}}

cfleming03:09:32

Well, I can get the deps from the file, but IIRC the src format wasn’t actually supported (unless that’s new)

cfleming03:09:01

There wasn’t any way to specify source roots, at least initially.

cfleming03:09:53

Interesting, thanks, I’ll take a look.

Oliver George03:09:14

Thanks Colin. Love your work as always.

Oliver George03:09:29

(Seems to be the {:type :file} bit which is new)

Alex Miller (Clojure team)19:09:35

And that's newer than the ref above

Alex Miller (Clojure team)19:09:27

The default user level deps.edn now includes a src/ root by default too

cfleming22:09:16

@alexmiller So I guess a dep of :type file is just a directory, and could contain compiled classes or source code, right? Is there any way to distinguish the two?