This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-08
Channels
- # announcements (1)
- # babashka (28)
- # beginners (30)
- # calva (1)
- # cider (13)
- # clojure (26)
- # clojure-brasil (2)
- # clojure-europe (29)
- # clojure-italy (1)
- # clojure-nl (1)
- # clojure-norway (16)
- # clojure-spec (4)
- # clojure-uk (5)
- # cursive (17)
- # data-science (15)
- # datomic (8)
- # emacs (8)
- # events (1)
- # hyperfiddle (54)
- # joyride (18)
- # jvm (2)
- # kaocha (8)
- # lsp (8)
- # malli (4)
- # missionary (11)
- # reagent (5)
- # reitit (13)
- # releases (2)
- # rum (2)
- # scittle (6)
- # shadow-cljs (3)
Not really Joyride specific I think, but I haven't had to change this before.
How can I have deps.edn
:local/root
always point to the current users homefolder in the case of the extra deps in alias :joyride-user
?
:joyride-user {:extra-deps {joyride/user {:local/root "/home/thierry/.config/joyride"}}}
e.g. "/home/$USER/.config/joyride"
I tried using Java interop via Clojure but thats not accepted 😞
(.toString (System/getProperty "user.home") "/.config/joyride")
I have the alias be defined in my ~/.clojure/deps.edn
, so there’s no need to point it to different home folders. What’s your setup?
Ahh, I have it in the projects deps.edn. Maybe better to set in the deps.edn in ~/.clojure/deps.edn
indeed.
Hmmm, it could be that you started Joyride at some point where it recommended the wrong setup.
but then still, I have 2 systems I work on that share settings but have different usernames?
I'll have a think about it, maybe I'll write a #CLX41ASCS script that changes the username when I sync
I think Babashka has selmer, so you could sync a template like ~/.clojure/template-deps.edn
, and then create the real deps.edn
file from that.
In any case. Since projects can be shared between different people, they are not a good place to define the alias.