| 19 Jan 2025 |
jade_ | (aside from that it would be an implementation headache anyway since it would have to be custom and also deal with casehack :/ running through nar as an intermediary is safest) | 03:30:56 |
emily | anyway probably any mild amount of migration pain is worth getting rid of case hack | 03:31:03 |
jade_ | oh YEAH that's a bug isn't it | 03:31:10 |
jade_ | nix does not detect whether it is on a case sensitive volume and just turns on casehack based on platform | 03:31:25 |
emily | uh, really? | 03:31:53 |
jade_ | yUP | 03:31:57 |
jade_ | i just checked | 03:32:00 |
jade_ | it's an ifdef in lix at least | 03:32:04 |
jade_ | you can override with use-case-hack, but that's jacked! | 03:32:18 |
jade_ | * you can override with use-case-hack, but it's jacked by default! | 03:32:26 |
emily | great. guess all this setup was for nothing | 03:33:04 |
jade_ | sorry :( I only synthesized this from things I knew, today | 03:33:39 |
emily | profiles/darwin/case-sensitive.nix
2: nix.settings.use-case-hack = false;
never mind, life is wonderful
| 03:33:43 |
jade_ | wait a minute, another bug: case hack is entirely global (lol lmao), so you cannot have different stores with different case hack settings if you are trying to fix this
this has somewhat horrifying implications for NAR handling on CppNix on macOS | 03:36:46 |
jade_ | (since Lix bans case hack filenames from NARs outright) | 03:36:57 |
jade_ | hm. maybe. unsure. | 03:37:28 |
jade_ | i think where im thinking about this is that it's going to case hack things on remote stores, but that probably doesn't actually happen | 03:37:52 |
emily | you're worried about say, chroot stores on the main system volume? | 03:38:08 |
jade_ | yea, for instance | 03:38:16 |
jade_ | or if you are trying to use nix copy to migrate a store rather than explicitly running through nix-store --export | 03:38:32 |
jade_ | https://git.lix.systems/lix-project/lix/issues/628 anyway, bug filed for not detecting it | 03:40:15 |
jade_ | yeah i think that nix store ls might case hack its output lmao | 03:46:28 |
jade_ | * yeah i think that nix store ls might plausibly case hack its output lmao | 03:46:40 |
ElvishJerricco | ... what on earth is "case hack"? | 03:57:58 |
jade_ | nars that have case-conflicting file names will have them written to disk as foo~nix~case~hack~1 and fOO~nix~case~hack~2 | 04:05:12 |
jade_ | which deals with not corrupting nars that get expanded on macOS in the process of being used for linux or such | 04:06:26 |
ElvishJerricco | huh. That's... interesting | 04:08:48 |
uep | i always end up reading that option as "use-case hack" | 04:59:55 |
| @srestegosaurio:tchncs.de joined the room. | 05:54:39 |
| Jeff joined the room. | 06:01:07 |