tools-deps

Alex Miller (Clojure team) 2024-03-08T23:41:01.442819Z

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) 2024-03-08T23:41:54.251729Z

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) 2024-03-08T23:43:47.575339Z

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.

👍 5
Alex Miller (Clojure team) 2024-03-08T23:44:37.099449Z

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