This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-19
Channels
- # babashka (13)
- # beginners (4)
- # biff (1)
- # cider (15)
- # clerk (1)
- # clojure (18)
- # clojure-europe (10)
- # clojure-nl (1)
- # clojure-uk (1)
- # core-logic (2)
- # core-typed (2)
- # datomic (23)
- # defnpodcast (1)
- # emacs (4)
- # fulcro (25)
- # hyperfiddle (8)
- # music (1)
- # off-topic (21)
- # podcasts-discuss (1)
- # polylith (6)
- # releases (1)
- # squint (19)
- # tools-deps (10)
How can I create a basis for an absolute path if the JVM's current directory is unrelated? e.g.
user> (tools.deps/create-basis {:project "/Users/vemv/foo/bar/deps.edn"})
Execution error (ExceptionInfo) at clojure.tools.deps.extensions.local/ensure-file (local.clj:41).
Local lib yyy not found: xxx
what's failing is that a dependency is defined like this: foo/bar {:local/root "../../baz"}
so it's tripping up due to my unrelated CWD.
(names redacted)You can wrap in c.t.deps.util.dir/with-dir
It will use that as if it was the cwd
> You shouldn’t need to set the :project then either I tried this and my tests began failing 🥲
Well I could be crazy but I would expect it to use deps.edn as the relative path, resolved against the with-dir