!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

892 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.187 Servers

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


SenderMessageTime
25 Aug 2025
@fzakaria:one.ems.hostfzakariathe file parsing I have kept the same for now and this tackles mostly SCP04:40:26
@emilazy:matrix.orgemily I don't think Nix treats file://a/b as relative or file:/a/b as absolute currently 04:41:28
@emilazy:matrix.orgemily file://relative/repo is the path /repo on the authority relative, and file:/a/b is I think RFC-compliant but does not work 04:43:29
@emilazy:matrix.orgemilyat least a doc/tests issue, since the URL described as relative isn't04:44:04
@fzakaria:one.ems.hostfzakariaI wrote two tests for now. If we file a bug I can augment the parser04:44:52
@fzakaria:one.ems.hostfzakaria
        // Relative path (becomes file:)
        {"relative/repo", "file://relative/repo"},
        // Already file: scheme
        {"file:/var/repos/x", "file:/var/repos/x"},
04:44:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @fzakaria:one.ems.host
the file parsing I have kept the same for now and this tackles mostly SCP
Either way that looks like a bug. file urls must contain absolute paths https://datatracker.ietf.org/doc/html/rfc8089#section-2
06:24:20
@magic_rb:matrix.redalder.orgmagic_rb https://github.com/NixOS/nix/pull/13437 dumb question, cause from the description its not obvious. But this makes follows recursive right 13:13:03
@fzakaria:one.ems.hostfzakariaso should it fail ?14:24:39
@fzakaria:one.ems.hostfzakariaor just force relative paths to become absolute ? Can we handle this in a separate PR after and discuss?14:24:52

Show newer messages


Back to Room ListRoom Version: 6