| 3 Apr 2026 |
emily | ok, /var/folders is temporary directories | 22:57:45 |
emily | (per-user etc.) | 22:57:55 |
emily | so something is using crazy amounts of $TMPDIR | 22:58:03 |
hexa | it will be nix, right? | 22:58:13 |
emily | probably not? | 22:58:20 |
emily | Nix uses /tmp and /nix/var/nix/builds | 22:58:24 |
hexa |  Download | 22:58:28 |
hexa |  Download | 22:58:40 |
emily | you can get stuff in /var/folders running commands as a user, but it'd be pretty surprising for it to use up tons of space because of being a builder I feel | 22:58:44 |
hexa | uh, wanna hop on a quick call instead of spamming this room? | 22:58:50 |
emily | honestly I should really be going to sleep rather than getting sniped by this 🫠 | 22:59:17 |
hexa | split brain on the spaces and many rooms I'm afraid. we need to upgrade them | 22:59:24 |
samasaur | what's that /clang in /var/folders/.../C? that's not temp files | 22:59:32 |
emily | but that clang cache directory is very weird, kind of makes me think it's just some leftover garbage | 22:59:40 |
emily | /C is caches iirc | 22:59:56 |
emily |
Provides the path to the user's cache directory. The directory will be created if it does not already exist. This directory is created with access permissions of 0700 and restricted by the umask(2) of the calling process and is a good location for user cache data as it will not be automatically cleaned by the system.
| 23:00:08 |
Randy Eckenrode | Lix uses $TMPDIR for dev shells. What is upstream Nix doing these days? (Though why would Hydra have dev shells?) | 23:00:32 |
hexa | sorry, I currently have lix on this box | 23:00:52 |
Randy Eckenrode | Clang module cache. | 23:01:02 |
hexa | for reasons | 23:01:05 |
emily | feel free to rm -rf /var/folders/*/*/C | 23:01:09 |
emily | should be safe | 23:01:17 |
hexa | it's funny that all of them have a clang | 23:01:39 |
emily | and I'm guessing whatever used up the space there was one-off stuff rather than anything Nix builds are doing … oh … except … no sandbox | 23:01:41 |
emily | so maybe Clang builds are actually writing in there, haha | 23:01:45 |
emily | perhaps we should point Clang at a different module cache dir in cc-wrapper or something | 23:02:03 |
hexa | yeah, no sandbox for darwin builds on hydra | 23:02:04 |
emily | or maybe we can somehow override DARWIN_USER_CACHE_DIR | 23:02:15 |
emily | for builder users | 23:02:18 |
emily | fwiw the cheap solution is probably just to do this in cron. probably with an extra /* at the end | 23:08:26 |