Skip to content

Commit 9a5d263

Browse files
committed
add add-lib reference in faq
1 parent 69eb052 commit 9a5d263

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/guides/faq.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ tools.deps aims to provide programmatic building blocks for dependency resolutio
390390
[[clj_dynamic]]
391391
**<<faq#clj_dynamic,Do these tools allow you to dynamically add dependencies to a running repl?>>**
392392

393-
No. Other tools exist to do this now or could be added on top of the existing functionality but this was not part of the initial goal.
393+
Yes (since Clojure 1.12) - see <<xref/../../../reference/repl_and_main#add_lib,add-lib>>.
394394

395395
[[clj_standalone]]
396396
**<<faq#clj_standalone,How can I create a single-file Clojure script, ideally self-invokable via a https://en.wikipedia.org/wiki/Shebang_(Unix)[shebang line]?>>**

content/reference/repl_and_main.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ If you switch to a different namespace (with `in-ns` or `ns`), these functions w
163163

164164
Also, the Clojure runtime will look for and load the `user` namespace on startup if it is found. Generally, this should only be used to provide development-time faciliities, and not in a production scenario.
165165

166-
[[add-lib]]
166+
[[add_lib]]
167167
== Adding libraries for interactive use
168168

169169
The <<xref/../../../guides/install_clojure#,Clojure CLI>> can be used to <<deps_edn#,declare dependencies>> loaded at REPL startup time. Since Clojure 1.12, you can also dynamically load libraries at the REPL for interactive use. These functions are available in the `tools.deps.repl` namespace:

0 commit comments

Comments
 (0)