!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

415 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
27 Jul 2025
@emilazy:matrix.orgemilyah you select in the code rather than the gutter15:58:37
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
copying all the time sounds great to me if Linux has to do it too though :P
i mean, the optimization is dangerous for now :D
16:01:33
@raitobezarius:matrix.orgraitobezarius
In reply to @aloisw:julia0815.de
According to the commit message here the motivation was avoiding broken symlinks, but the linked commit doing the same for resolv.conf also cites changing file.
with my current proposal, bindPath would follow the symlink I believe
16:02:37
@raitobezarius:matrix.orgraitobezariusso broken symlinks would surface as an exception and break the setup16:02:44
@raitobezarius:matrix.orgraitobezariusbindPath(source symlink, target, {.followSymlinks = true}) degrades to copyFile(source, target, {.followSymlinks = true}) actually16:03:12
@raitobezarius:matrix.orgraitobezarius(with the createDirs in addition on the base dir)16:03:18
@raitobezarius:matrix.orgraitobezariusbut ok for the changing files16:03:38
@raitobezarius:matrix.orgraitobezarius K900 explain yourself 16:03:41
@raitobezarius:matrix.orgraitobezariusdid you notice files changing on the fly or not mid-builds?16:03:49
@raitobezarius:matrix.orgraitobezarius emily fwiw, i'm redoing the testing stuff 16:04:10
@k900:0upti.meK900 What 16:04:22
@raitobezarius:matrix.orgraitobezariusi'm going to split into a sandboxed-ca.sh and unsandboxed-ca.sh test suite16:04:22
@emilazy:matrix.orgemilybecause of issues with Darwin sandbox testing?16:04:36
@raitobezarius:matrix.orgraitobezarius
In reply to @k900:0upti.me
What
https://git.lix.systems/lix-project/lix/commit/b469c6509ba616da6df8a27e4ccb205a877c66c9
16:04:36
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
because of issues with Darwin sandbox testing?
because there's no such thing as building in a diverted store with Darwin
16:04:49
@raitobezarius:matrix.orgraitobezarius and also because we cannot do sandbox indeed 16:05:00
@emilazy:matrix.orgemily diverted store = chroot store? 16:05:10
@raitobezarius:matrix.orgraitobezariusyep16:05:13
@raitobezarius:matrix.orgraitobezariusi got bitten by trying to test if repair worked on darwin as well like this yesterday16:05:24
@aloisw:julia0815.dealoisw
In reply to @raitobezarius:matrix.org
so broken symlinks would surface as an exception and break the setup
I think "broken symlink" may actually have been about the file being a symlink which is bound and the target not existing in the sandbox.
16:05:39
@k900:0upti.meK900
In reply to @raitobezarius:matrix.org
https://git.lix.systems/lix-project/lix/commit/b469c6509ba616da6df8a27e4ccb205a877c66c9
No
16:05:48
@k900:0upti.meK900 But I was worried it could happen 16:05:53
@emilazy:matrix.orgemily I don't know the threat model of the CI builders but it would be really nice to have sandbox testing by way of _NIX_TEST_NO_SANDBOX=1. 16:06:06
@raitobezarius:matrix.orgraitobezariusI wonder if we should just build a test for it16:06:08
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
I don't know the threat model of the CI builders but it would be really nice to have sandbox testing by way of _NIX_TEST_NO_SANDBOX=1.
CI builders lives themselves in a user namespace
16:06:21
@raitobezarius:matrix.orgraitobezariusor on the baremetal for some of them16:06:26
@emilazy:matrix.orgemilymacOS16:06:27
@emilazy:matrix.orgemilyno such thing16:06:30
@raitobezarius:matrix.orgraitobezariusah yes16:06:31
@k900:0upti.meK900 The actual problem this fixed was some convoluted symlink setup that I forgot why it's like that 16:06:33

Show newer messages


Back to Room ListRoom Version: 10