Leiningen checkouts when a library has a slash in its name
I am trying to use the Checkout Dependencies feature in Leiningen to work on a project that uses Flambo's checkout . Mine project.clj
looks something like this:
(defproject spark-streaming "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[yieldbot/flambo "0.4.0-SNAPSHOT"]
[amazonica "0.2.29"]
[clj-time "0.8.0"]] ;other stuff omitted
My directory structure looks like this:
|- checkouts
|- <need symlink to yieldbot/flambo>
|- src
|- project.clj
What I have tried:
- Since the library name contains a forward slash, I cannot make a symbolic link named with the
"yieldbot/flambo"
actual location of Flambo. -
I can not too:
|- checkouts |- yieldbot |- flambo //this is a symlink
because Lein expects project.clj in the directory yieldbot
. Execution lein classpath
confirms that my check is not being used.
- Directly check
flambo
forcheckouts/yieldbot
. Doesn't work for the same reason as above.
What can I do?
source to share
The only thing lane expects in the directory just below the checkout pouches is the project.clj file. The organization namespace is derived from this project file and has nothing to do with the directory structure above the symbolic link.
In your flambo project file make sure you have the (defproject yieldbot/flambo "version" ...
correct one. Then, in your checks of your sparkflow project, create a symlink in the directory itself flambo
.
source to share