Fork me on GitHub
#tools-deps
<
2021-03-25
>
imre11:03:33

I found that ~/.gitlibs/_repos/<repo-path>/worktrees/<sha>/gitdir files contain absolute paths to subfolders under ~/.gitlibs/libs/. This seems to result in conflicts when I want to share my ~/.gitlibs between my physical machine (mac) where I conduct most of my dev work and a docker container (linux, different user etc.) which is necessary for a special project I work on. Is there any nice way around this? For now I just let git deps be downloaded every time the container starts. Perhaps I can set up another local gitlibs folder which would be container-only?

imre12:03:22

I might have just rubber duckie -ed myself using this channel. I can mount different, image/project-specific folders into ~/.gitlibs and .cpcache

Alex Miller (Clojure team)12:03:03

You can set the GITLIBS env var to say where the root is

imre12:03:45

That's good to know, thank you.

imre12:03:13

There isn't one to override the location of .cpcache though, am I right?

imre12:03:58

cpcache also has absolute paths