leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
vemv 2019-06-20T12:03:26.039900Z

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

2019-06-21T09:36:04.048300Z

it sounds like what lein-deps does

2019-06-21T09:36:29.048500Z

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

vemv 2019-06-20T12:16:02.040Z

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

2019-06-20T19:05:56.040600Z

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

2019-06-20T19:06:07.040900Z

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

2019-06-20T19:06:52.041600Z

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.

vemv 2019-06-20T19:22:28.042200Z

thank you! might be worth a shot