is it possible to print the merged deps.edn for a given clojure invocation? something like -Sprint-deps? i'm working on a hairy problem and want to figure out exactly what's happening
depending on what you are trying to do with it, the file pointed to by the clojure.basis system property might be a pretty close. it isn't exactly the deps.edn format (may be a superset?). it includes a lot of sort of post dependency resolution data
i just want to inspect it
if, for example, you want to determine the actual final version of something that ends up on the classpath, something like clj -Spath|grep -Eo '/netty[^:]+' is decent for that
the basis is generally a lot to inspect by eye
https://github.com/clojure/tools.deps.edn exists which seems like it may actually give you exactly a merged deps.edn style map
oh nice
the basis is a superset of deps.edn and does include the merged deps.edn
you can also get that via clj -X:deps basis (takes modifiers for other classpath variants if needed, like clj -X:deps basis :aliases '[:foo :bar]' etc)
https://clojure.github.io/clojure/#clojure.java.basis is a good reference for the basis
excellent, thank you
I sometimes also inspect the clojure.basis Java property