Fork me on GitHub
#joyride
<
2024-04-08
>
Thierry12: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")

pez13:04:37

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

pez13:04:51

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?

Thierry13:04:39

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

pez13:04:26

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

Thierry13:04:33

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

pez13:04:21

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

Thierry13:04:53

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

Thierry13:04:35

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

pez13:04:02

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.

pez13:04:47

Or use the same username on both systems. 😃

Thierry13:04:24

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

pez13:04:52

Symlinks might work?

pez13:04:26

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

Thierry13:04:32

Yea I figured that

Thierry13:04:14

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

Thierry13:04:06

same issue obviously, hehe