!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

878 Members
For people hacking on the Nix package manager itself186 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Oct 2025
@lovesegfault:matrix.orglovesegfaultbtw, does this help with perf concerns? https://github.com/NixOS/nix/pull/14171/files#diff-d6730623c42446aa1f33e3177f7146d342ca8d5103e0814bb0b7ac212af5576dR90-R9923:41:43
@lovesegfault:matrix.orglovesegfaultidk if the str scan is fast enough to help23:41:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I was thinking that we could just special-case '.' and '..': '.' does nothing and '..' does a pop. Also I don't think the rhs of this operator is ever supposed to have a '/' there23:43:07
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) I see you've added the tests for such cases, but isn't that supposed to be handled by CanonPath::extend? 23:45:46
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

There's the comment:

    /**
     * Add a path component to this one. It must not contain any slashes.
     */
23:46:27
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Maybe the right thing is to instead fix the user code?23:46:38
@lovesegfault:matrix.orglovesegfault i wasn't sure what could end up there realistically, just wanted to avoid having that weird assert thrown at users 23:46:50
@lovesegfault:matrix.orglovesegfaultyeah, okay, maybe we only handle dots 23:46:57

Show newer messages


Back to Room ListRoom Version: 6