!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

895 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
8 Dec 2025
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

Specifically this:

std::string localPath = url.substr(7);
+        if (!std::filesystem::exists(localPath)) {
+            throw Error("tarball '%s' does not exist.", localPath);
+        }
12:38:59
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Basically it will fail shamefully when encountering a symbol that gets pct-encoded in the file:// URL and barf early even though the later fetching code does the decoding correctly and since NIX_BUILD_TOP is in a dir that has + in it... 12:41:56
@dramforever:matrix.orgdramforeveroooh this is why it only fails if no sandbox12:43:24
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yup...12:43:39
@dramforever:matrix.orgdramforeveroh12:46:04
@dramforever:matrix.orgdramforeverduh12:46:07
@dramforever:matrix.orgdramforever i was trying to --no-sandbox and i don't think that does anything... 12:46:20
@dramforever:matrix.orgdramforeverprobably for the better12:46:34
@dramforever:matrix.orgdramforeverthis is fixed but it's so un-cherry-pick-able13:02:48
@dramforever:matrix.orgdramforeverthere's like a whole new url parsing infrastructure thing added on13:03:08
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Yeah, I know. Probably just doing a percentDecode on the localPath would be enough 13:03:42
@dramforever:matrix.orgdramforeverupdate on that is i just realized i can repro this locally on linux if i just do sandbox = false16:43:58
@dramforever:matrix.orgdramforeverso i'm running a build with this patch https://github.com/NixOS/nix/pull/1473416:44:11
@dramforever:matrix.orgdramforeverhopefully that would fix it16:44:30
@joerg:thalheim.ioMic92

John Ericson: looks like there is some issue now when using the current stable nix against a new nix daemon?

clan-env % nix develop
path '/home/joerg/git/clan-core/pkgs/clan-cli' does not contain a 'flake.nix', searching up
error:
       … while checking derivation '/nix/store/v8qnm8aabm0fp0v2xf3cavsgwqfgc2bk-clan-env.drv'

       error: derivation has incorrect deferred output, should be '/nix/store/jq6nq5bvdv23xdjajsaj2ay6vni5bkki-clan-env'

clan-env % real-which nix
/nix/store/ah8kqqslr7jig18fd4hzmdk2bhbqs8a7-nix-2.31.2/bin/nix


clan-env % /nix/store/7ykgjirdiwxkdwyh3hypd27ifx7aws29-nix-2.33.0pre20251208_5b5d4cb/bin/nix develop
path '/home/joerg/git/clan-core/pkgs/clan-cli' does not contain a 'flake.nix', [joerg@eve clan-cli]$

16:50:58
@dramforever:matrix.orgdramforevernevermind17:01:56
@dramforever:matrix.orgdramforeverthe tests just fail on linux without sandbox...17:02:15

Show newer messages


Back to Room ListRoom Version: 6