Lix Development | 434 Members | |
| (Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel. | 142 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Apr 2026 | ||
| 18:33:21 | ||
| 18:47:20 | ||
| 1 May 2026 | ||
| Oh cool, I missed that when it came out: https://lwn.net/Articles/1054225/ | 11:19:40 | |
| It only took them almost seven years! | 11:19:49 | |
| I thought it was an unmerged patchset? | 11:24:35 | |
| Not sure if it's the exact same API, but this looks like the entry point to the thing: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/io_uring/register.c?h=v7.0.3#n1014 | 11:26:15 | |
| Oh great | 11:32:28 | |
| 17:12:38 | ||
| 2 May 2026 | ||
| Noticed one thing here: https://git.lix.systems/lix-project/lix/src/commit/cd573beb0a60d6bf0e341bcd4d2c464ed97c1a8a/lix/libstore/sqlite.cc#L186-L190 The reasoning there doesn't seem entirely correct since per sqlite docs NUL bytes anywhere in the string are UB?
| 01:14:56 | |
| That's not my interpretation of "result of expressions involving strings with embedded NULs is undefined". To me it seems that storing or retrieving these strings is completely fine, but if you put it into a SQL expression the behaviour is unspecified in C standards language. | 05:10:20 | |
| there's a docs page dedicated to this:
| 07:25:16 | |
Lol, that's quite a formulation for "we didn't put the effort into making it work in the CLI". | 07:29:19 | |
| 14:06:27 | ||
| 3 May 2026 | ||
| 09:53:44 | ||
| 10:39:01 | ||
| 22:42:19 | ||
| 4 May 2026 | ||
| 22:22:34 | ||
| 5 May 2026 | ||
i've had test_import_from_derivation.py::test_warn_ifd and test_import_from_derivation.py::test_allow_ifd consistently fail on main and looking at the output, it's because there's a rogue "auto-disabling sandboxing because the prerequisite namespaces are not available," but can anyone tell me... what that message means? and why it's affecting the tests / what i can do about it | 19:04:47 | |
* i've had test_import_from_derivation.py::test_warn_ifd and test_import_from_derivation.py::test_allow_ifd consistently fail on main and looking at the output, it's because there's a rogue "auto-disabling sandboxing because the prerequisite namespaces are not available," but can anyone tell me... what that message even means? and why it's affecting the tests / what i can do about it | 19:04:54 | |
* i've had test_import_from_derivation.py::test_warn_ifd and test_import_from_derivation.py::test_allow_ifd consistently fail on main and looking at the output, it's because there's a rogue "auto-disabling sandboxing because the prerequisite namespaces are not available," but can anyone tell me... what that message even means? and why it's affecting the tests / what i can do about it? | 19:05:23 | |
| It most likely means that user namespaces are broken on your system (maybe because it's recent Ubuntu) and therefore the sandbox doesn't work. For the old functional test suite tests requiring sandboxing were skipped in this case. I lost track of what was done for functional2. | 19:10:10 | |
hmm yeah sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 fixed it | 19:12:38 | |
* hmm yeah sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 fixed itgrrrr ubuntu | 19:12:46 | |
* hmm yeah sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 fixed itgrrrr canonical | 19:12:54 | |
| https://git.lix.systems/lix-project/lix/issues/545 is the issue about that for that matter. | 19:13:38 | |
| what is weird about this is that this wasn't a problem before... might be a regression in f2, but it's also likely a recent upgrade flipped that switch again or a my setup got messed up after my recent corruption | 19:17:04 | |
| * what is weird about this is that this wasn't a problem before... might be a regression in f2 (i don't really have the time to bisect, unfortunately), but it's also likely a recent upgrade flipped that switch again or a my setup got messed up after my recent corruption | 19:17:18 | |
| Old functional ran most tests without sandboxing and had code in the few ones requiring sandboxing to first check whether it'll work, and then explicitly enable the sandbox. At the time of my last comment on that issue functional2 would generally run all tests inside the sandbox (not really sure how it works now, unfortunately around that time was when I was both very fed up with nixpkgs and busy otherwise so I kinda didn't manage to keep up). | 19:20:51 | |
| Yep, we do have sandbox enabled by default, but if sandbox isnt available they are run without iirc Though it is possible to mark a test as requiring sandbox which will skip it if sandbox isnt available (be it darwin or ubuntu apparmor stuff) | 19:26:24 | |
| 6 May 2026 | ||
in the lix codebase, is there anyway to get the Hash object that corresponds to a StorePath? | 09:31:50 | |