joyride

Thierry 2024-04-08T12:59:08.422929Z

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")

pez 2024-04-08T13:19:37.763809Z

I don’t think you can… But I could be wrong.

Thierry 2024-04-08T13:19:57.645489Z

meh

pez 2024-04-08T13:25:51.041689Z

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?

Thierry 2024-04-08T13:26:39.152349Z

Ahh, I have it in the projects deps.edn. Maybe better to set in the deps.edn in ~/.clojure/deps.edn indeed.

pez 2024-04-08T13:27:26.924519Z

Hmmm, it could be that you started Joyride at some point where it recommended the wrong setup.

Thierry 2024-04-08T13:27:33.862619Z

but then still, I have 2 systems I work on that share settings but have different usernames?

pez 2024-04-08T13:28:21.085019Z

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

Thierry 2024-04-08T13:28:53.410609Z

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

Thierry 2024-04-08T13:29:35.224099Z

I'll have a think about it, maybe I'll write a #babashka script that changes the username when I sync

pez 2024-04-08T13:33:02.778819Z

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.

pez 2024-04-08T13:33:47.786659Z

Or use the same username on both systems. 😃

Thierry 2024-04-08T13:34:24.697759Z

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

pez 2024-04-08T13:35:52.977069Z

Symlinks might work?

pez 2024-04-08T13:37:26.554269Z

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

Thierry 2024-04-08T13:40:32.437339Z

Yea I figured that

Thierry 2024-04-08T13:46:14.793289Z

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

Thierry 2024-04-08T13:47:06.392519Z

same issue obviously, hehe