Fork me on GitHub
#tools-deps
<
2024-03-08
>
Alex Miller (Clojure team)23:03:01

In updating tools.deps today, I've added a new option :dir to the create-basis function. This option says which directory to resolve deps.edn relative dirs from (as provided in :root, :user, :project, :extra).

Alex Miller (Clojure team)23:03:54

We've been through a series of changes in this area of the last few months, interpreting project deps.edn relative paths in terms of the project deps.edn - that is no longer relevant or used. Use :dir to set your directory context and :project to set the location of the project deps.edn relative to that dir root. All relative dirs in any deps.edn are resolved relative to the :dir context.

Alex Miller (Clojure team)23:03:47

For the majority of current tools.deps lib or Clojure CLI uses, :dir = . and there is no affect on anything you're doing, really most likely those affected are specifying a project deps.edn in some other directory.

👍 4
Alex Miller (Clojure team)23:03:37

All downstream users of tools.deps that expose create-basis options (tools.deps.cli / -X:deps programs, tools.build, etc) now also have the :dir option in their relevant apis, in their latest versions.

🎉 3