!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

996 Members
For people hacking on the Nix package manager itself210 Servers

Load older messages


SenderMessageTime
10 Oct 2021
@balsoft:balsoft.rubalsoftYeah it evals and builds fine20:23:22
@tomberek:matrix.orgtomberek Well. You may be getting lucky that the references exist in your store already. It’s possible that can result in dangling references. 22:05:57
@balsoft:balsoft.rubalsoftThat's true22:06:12
@balsoft:balsoft.rubalsoft Maybe we should solve that with a simple stupid solution and just force all the references to be built in the addPath function? 22:06:57
11 Oct 2021
@tomberek:matrix.orgtomberekPerhaps, but I’m not sure what semantics or evaluation properties need to be preserved.00:52:01
@balsoft:balsoft.rubalsoft
In reply to @tomberek:matrix.org
Well. You may be getting lucky that the references exist in your store already. It’s possible that can result in dangling references.
Wait, how can referenced paths not exist in the store if these are runtime references, and the path is already in nix store? Doesn't nix do a pretty good job at making sure all the runtime deps are always in the store if the dependent is in the store?
06:53:11
@balsoft:balsoft.rubalsoftThe only problem I can think of is that applying a filter can make some references obsolete06:54:11
@balsoft:balsoft.rubalsoft E.g. if you have /nix/store/our-drv/foo -> /nix/store/bar, /nix/store/our-drv/goo -> /nix/store/doo and then you filter out foo, you now have a store path that references bar but never actually links to it in any way 06:55:19
@tomberek:matrix.orgtomberek
This check was overly restrictive and inaccurate, since it's not about having a context but about having references. We can't copy a path if it has references, since we don't propagate the references to the resulting path.

from PR - eelco. I'm not sure if that's a "we can't propagate" or "we don't (yet) propagate"

06:56:37
@balsoft:balsoft.rubalsoftAhhh, ok, I see06:56:52
@balsoft:balsoft.rubalsoftIn that case we should probably not propagate the references, but search for them again in the new filtered path06:57:43
@tomberek:matrix.orgtomberek *
This check was overly restrictive and inaccurate, since it's not about having a context but about having references. We can't copy a path if it has references, since we don't propagate the references to the resulting path.

from PR - eelco. I'm not sure if that's a "we can't propagate" or "we don't (yet) propagate" or "shouldn't propagate because it's a bad idea"

06:57:44
@balsoft:balsoft.rubalsoft
In reply to @balsoft:balsoft.ru
E.g. if you have /nix/store/our-drv/foo -> /nix/store/bar, /nix/store/our-drv/goo -> /nix/store/doo and then you filter out foo, you now have a store path that references bar but never actually links to it in any way
(to avoid this)
06:57:59
12 Oct 2021
@sebass:matrix.orgsebass joined the room.14:10:59
@slby:matrix.orgslby joined the room.18:26:25
13 Oct 2021
@tomberek:matrix.orgtomberek baloo: preloadNSS patch is causing a DNS lookup to "this.pre-initializes...", and in some cases takes 5 seconds to timeout. (this runs even for nix --version. I've not yet fully investigated, but I am on captive portal DHCP. Otherwise a fairly normal NixOS config. 12:37:17
@baloo_:matrix.orgbalooHa13:26:29
@baloo_:matrix.orgbaloo Any chance you could strace nix —version and put that on a gist for me?
With your captive portal (just to make sure)
13:29:10
@tomberek:matrix.orgtomberek baloo: https://gist.github.com/tomberek/0b2655fec8f0fdaabc233d5c880e74d5 15:09:22
@baloo_:matrix.orgbaloothis is interesting, it looks like it actually gets a response15:11:31
@baloo_:matrix.orgbaloobut ... 15:12:33
@ninjatrappeur:matrix.orgNinjaTrappeur56ac7c8db6d1afb677c98f717efdf1e3d2219c1aae8cc45c911c40d7b45af591-kAjR3I8.png
Download 56ac7c8db6d1afb677c98f717efdf1e3d2219c1aae8cc45c911c40d7b45af591-kAjR3I8.png
15:12:35
@baloo_:matrix.orgbaloothe request id is ... wrong15:12:40
@baloo_:matrix.orgbaloowhat15:12:44
@baloo_:matrix.orgbaloohow is that possible15:12:47
@ninjatrappeur:matrix.orgNinjaTrappeur The --help output of Nix 2.4 looks pretty weird WRT. colors. 15:12:48
@ninjatrappeur:matrix.orgNinjaTrappeurIS that done on purpose or is this a config issue of the doc output?15:13:05
@balsoft:balsoft.rubalsoft
In reply to @ninjatrappeur:matrix.org
IS that done on purpose or is this a config issue of the doc output?
I think it's fixed now
15:13:20
@balsoft:balsoft.rubalsoftclipboard.png
Download clipboard.png
15:13:29
@baloo_:matrix.orgbaloohttps://datatracker.ietf.org/doc/html/rfc1035#section-4.1.115:13:38

Show newer messages


Back to Room ListRoom Version: 6