5 Sep 2024 |
outfoxxed | In reply to @k900:0upti.me I don't like this whole lookup key versus integrity key thing they've got going on the purpose just seems to be so they don't spam duplicate cache files much | 07:49:32 |
K900 | Yeah I get that | 07:49:38 |
K900 | But it's making things annoying because we also can't just have tmpfilesd clean it up based on atime or whatever | 07:49:54 |
K900 | Because we don't know what's going on | 07:50:03 |
outfoxxed | I don't think theres a reasonable way to handle non qrc nix store qml files | 07:50:04 |
outfoxxed | we might just want to disable those entirely | 07:50:17 |
K900 | We could potentially base the hash off like, pname and relative path, but meh | 07:50:26 |
K900 | That's too cursed | 07:50:29 |
K900 | And too specific | 07:50:31 |
outfoxxed | wait actually | 07:50:31 |
outfoxxed | if they're in the nix store | 07:50:36 |
outfoxxed | the path will change | 07:50:40 |
outfoxxed | and thats the id key | 07:50:43 |
K900 | Yeah the problem is not that we'll hit stale cache | 07:50:51 |
K900 | The problem is that we'll never clean up stale cache | 07:50:55 |
outfoxxed | yeah i see | 07:50:59 |
K900 | Because it only cleans up on lookup hit | 07:51:02 |
outfoxxed | just cleanup | 07:51:02 |
K900 | And we will never lookup hit | 07:51:05 |
outfoxxed | hm | 07:51:14 |
outfoxxed | we could go further and strip the store part of the path | 07:51:35 |
outfoxxed | Redacted or Malformed Event | 07:51:58 |
outfoxxed | In reply to @outfoxxed:outfoxxed.me we could go further and strip the store part of the path and then store that in the tag area as well | 07:52:27 |
outfoxxed | its getting more complex than I'd like though | 07:52:45 |
K900 | We can't just strip the store path either because we could have QML files in the same relative path | 07:53:25 |
K900 | So it would have to be something like (pname, relative path) and even then it's not guaranteed to be unique | 07:53:41 |
K900 | It's a mess | 07:53:44 |
outfoxxed | canonicalize it first? | 07:53:45 |
K900 | I don't think we want to open that can of worms | 07:53:51 |
K900 | In reply to@outfoxxed:outfoxxed.me canonicalize it first? Relative to the root store path I mean | 07:53:57 |