0

I am working on a Clojure library. Inside the library is an example app that shows how to use the library. In the example app, which is in a subdirectory, what is the cleanest way to depend on the parent library? I want this to be fast; I want the dependency always be in step with the current library code. That means avoiding deploying to Clojars (or elsewhere).

David J.
  • 31,569
  • 22
  • 122
  • 174

2 Answers2

2

Use Leiningen "Checkout" Dependencies.

David J.
  • 31,569
  • 22
  • 122
  • 174
1

You can add "../src" to the :source-paths in project.clj

Since you always want the current version of the parent's code, and it will always be in the same relative place, it's less a "dependency" to be resolved and more a classpath to be used to find code.

noisesmith
  • 20,076
  • 2
  • 41
  • 49