joyride 2024-04-08

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 don’t think you can… But I could be wrong.

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?

Have the alias defined on both systems with their respective usernames.

yea, that would work indeed, except I sync all my files 🫠

I'll have a think about it, maybe I'll write a #babashka 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.

Or use the same username on both systems. 😃

lulz 🫠, root on wsl2, thierry at work, loud in ubuntu @ home

Symlinks might work?

In any case. Since projects can be shared between different people, they are not a good place to define the alias.

Yea I figured that

lol I put ~/.config/joyride as :local/root in ~/.clojure/deps.edn but that gets evaluated as /home/thierry/Documents/aorta-develop/~/.config/joyride 🤣

same issue obviously, hehe