Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Docs by

Testing libraries before adding them to a deps.edn file by using -Sdeps '{...}' is a frequent recommendation, but it's only mentioned in a single line in the Reference page.

I think it would be helpful if it (and the other flags) had examples with more detail about how they're used and why. Maybe something like:

  • -Sdeps - pass the config data on the command line

For example, instead of creating a new deps.edn file to experiment with a new library, you can use -Sdeps to pass in the :deps map to clojure:

$ clojure -Sdeps '{:deps {org.clojure/core.match {:mvn/version "1.0.0"}}}'
Clojure 1.11.1
user=> (require '[clojure.core.match :refer [match]])

1 Answer

+3 votes
selected by
Best answer

The clojure site repo accepts PRs in case you feel like suggesting a concrete edit https://github.com/clojure/clojure-site/pulls

Oh good call, I'll see if I can write up something useful.