Fork me on GitHub
#leiningen
<
2019-06-20
>
vemv12:06:26

can I query from a custom Lein plugin whether a specific dependency is reachable, without actually downloading it, and leveraging the credentials/repos of the "running context"? e.g. I want to ask "is [com.private/foo "0.6.2"] a thing that exists and I can download?" ...keeping in mind that [com.private/foo "0.6.2"] could live in Clojars, a private repo, or nowhere at all

vemv12:06:02

probably I can lein search and not write Clojure code at all. Or at least find inspiration in search's codebase

pyr09:06:04

it sounds like what lein-deps does

pyr09:06:29

(of course on the project's deps-vector only, but the same code could be used)

mikerod19:06:56

@vemv lein search just appears to try to hit some URL’s with a appropriate query string

mikerod19:06:07

So if you can just do that sort URL+query param style for your use cases, then perhaps just do that

mikerod19:06:52

otherwise, you may be looking more into lein deps style impl around how it interacts with cemerick.pomegranate.aether. there maybe a “check, but not download” resolution capability available there.

vemv19:06:28

thank you! might be worth a shot