This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-08
Channels
- # announcements (11)
- # babashka (13)
- # beginners (11)
- # biff (2)
- # calva (17)
- # cider (19)
- # clojure (60)
- # clojure-berlin (1)
- # clojure-dev (20)
- # clojure-europe (48)
- # clojure-nl (1)
- # clojure-norway (98)
- # clojure-spec (7)
- # clojure-uk (5)
- # core-typed (32)
- # cursive (13)
- # datomic (12)
- # dev-tooling (5)
- # emacs (7)
- # figwheel-main (2)
- # graalvm (4)
- # hyperfiddle (4)
- # introduce-yourself (1)
- # malli (14)
- # missionary (32)
- # off-topic (7)
- # overtone (4)
- # pedestal (10)
- # proletarian (4)
- # re-frame (8)
- # releases (11)
- # tools-build (1)
- # tools-deps (4)
- # xtdb (38)
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).
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.
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.
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.