Fork me on GitHub

An interesting aside to the above: Even though Java isn't required to install or use the Planck binary, homebrew doesn't yet make a distinction, so you transitively need Java via Clojure to install the binary.

Roman Liutikov12:03:31

How to specify a dependency on a project within a subfolder in a git repo? Such as this

Alex Miller (Clojure team)12:03:43

you can use :deps/root attribute for the relative subdir in the repo

Alex Miller (Clojure team)12:03:31

{:git/url "" 
 :sha "b3d1d16d4915948a36b341f5648e4c9763628ef3"
 :deps/root "figwheel-core"}

Roman Liutikov12:03:02

should it work for Clojure 1.9? or do I need 1.10?

Alex Miller (Clojure team)12:03:21

it declare the deps as needing only clojure 1.8

Alex Miller (Clojure team)12:03:35

but clojurescript 1.10.x

Roman Liutikov12:03:27

I’m getting Error building classpath. nil when running clj with the following deps.edn

{:deps {figwheel-core {:deps/root "figwheel-core",
                       :git/url "",
                       :sha "b3d1d16d4915948a36b341f5648e4c9763628ef3"}}}

Alex Miller (Clojure team)12:03:40

I can’t reproduce that

Alex Miller (Clojure team)12:03:53

is there a stack trace?

Alex Miller (Clojure team)12:03:21

from clj -Sverbose, what version are you running?

Alex Miller (Clojure team)12:03:04

do you have anything in your ~/.clojure/deps.edn?

Roman Liutikov12:03:02

There was deps, but I’ve edited it to be just {} before running

Alex Miller (Clojure team)12:03:19

maybe also use -Sforce to make sure you’re not getting something from cache

Alex Miller (Clojure team)12:03:15

oh interesting, that’s down in gitlibs. well, you could try cleaning your git cache in ~/.gitlibs

Alex Miller (Clojure team)12:03:28

either selectively or by deleting the whole thing

Alex Miller (Clojure team)12:03:45

that looks like it’s getting a nil url, which is weird

Roman Liutikov12:03:05

Works now. Not sure how exactly, but after cleaning ~/.gitlibs it didn’t work first. Once I ran clj -Sforce it went fine and subsequent clj (without forcing) are ok now

Alex Miller (Clojure team)13:03:43

I suspect something bad in your cpcache


👍 I managed to get clj to run in the Ubuntu PPA build for Planck. The main trickery was really ensuring it stays in the sandbox, which is a little tighter than Homebrew—you don't even have a home directory, for instance.