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
it sounds like what lein-deps does
(of course on the project's deps-vector only, but the same code could be used)
probably I can lein search
and not write Clojure code at all. Or at least find inspiration in search
's codebase
@vemv lein search
just appears to try to hit some URL’s with a appropriate query string
So if you can just do that sort URL+query param style for your use cases, then perhaps just do that
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.
thank you! might be worth a shot