!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

951 Members
For people hacking on the Nix package manager itself196 Servers

Load older messages


SenderMessageTime
4 Dec 2024
@joerg:thalheim.ioMic92 * Well now the manual seems to point to nix 2.24.07:04:30
@tonton:envs.net@tonton:envs.net left the room.22:49:41
5 Dec 2024
@rasmus:fricloud.dk@rasmus:fricloud.dk left the room.17:36:54
@urbas:matrix.orgMatej UrbasHi Arian! You probably got to the bottom of this problem by now, right? For the future though, I just added this S3 logging change to Nix: https://github.com/NixOS/nix/pull/12007 This will print an ID which you can use to find more information in CloudWatch.19:09:19
@nollie:matrix.org@nollie:matrix.org removed their display name nollie.20:38:27
@nollie:matrix.org@nollie:matrix.org left the room.20:38:47
6 Dec 2024
@cafkafk:fem.gg@cafkafk:fem.gg changed their profile picture.03:43:51
@roberthensing:matrix.orgRobert Hensing (roberth)Perhaps we should adopt the "oldstable" name? I've seen that name pop up during the support window overlap before13:59:55
@p14:matrix.orgp14

I just hit what looks like this old issue: https://github.com/NixOS/nixpkgs/issues/138157
It appears to repro on nixpkgs staging with nix 2.24.10 doing nix develop -f . hello. I get:

14:40:03
@p14:matrix.orgp14 *

I just hit what looks like this old issue: https://github.com/NixOS/nixpkgs/issues/138157
It appears to repro on nixpkgs staging with nix 2.24.10 doing nix develop -f . hello. I get:

error: [json.exception.parse_error.101] parse error at line 38, column 445: syntax error while parsing value - invalid string: control character U+001E (RS) must be escaped to \u001E; last read: '" \n    local sep=\"$1\";\n    local name=\"$2\";\n    local type oldifs;\n    if type=$(declare -p \"$name\" 2> /dev/null); then\n        local -n nameref=\"$name\";\n        case \"${type#* }\" in \n            -A*)\n                echo \"concatStringsSep(): ERROR: trying to use concatStringsSep on an associative array.\" 1>&2;\n                return 1\n            ;;\n            -a*)\n                local IFS='<U+001E>'
14:40:52
@p14:matrix.orgp14 *

I just hit what looks like this old issue: https://github.com/NixOS/nixpkgs/issues/138157
It appears to repro on nixpkgs staging (b8a6909c649634b9ef2183dd2848dfd52e49d305) with nix 2.24.10 doing nix develop -f . hello. I get:

error: [json.exception.parse_error.101] parse error at line 38, column 445: syntax error while parsing value - invalid string: control character U+001E (RS) must be escaped to \u001E; last read: '" \n    local sep=\"$1\";\n    local name=\"$2\";\n    local type oldifs;\n    if type=$(declare -p \"$name\" 2> /dev/null); then\n        local -n nameref=\"$name\";\n        case \"${type#* }\" in \n            -A*)\n                echo \"concatStringsSep(): ERROR: trying to use concatStringsSep on an associative array.\" 1>&2;\n                return 1\n            ;;\n            -a*)\n                local IFS='<U+001E>'
14:41:23
@p14:matrix.orgp14I see a handful of issues of this style open against nix as well. https://github.com/NixOS/nix/issues?q=is%3Aissue+json+json.exception.parse_error+is%3Aopen Is this a recently introduced stdenv issue14:44:37
@joerg:thalheim.ioMic92 p14: https://github.com/NixOS/nix/pull/11921 15:53:27
@p14:matrix.orgp14This is while running 'nix develop' though, there is no indication of any build taking place15:54:37
@p14:matrix.orgp14 * This is while running 'nix develop' on any package in staging though, there is no indication of any build taking place15:54:55
@joerg:thalheim.ioMic92 p14: I have the feeling if all packages are doing that, we should also fix this in nixpkgs. It should not echo invalid json 16:11:30
@joerg:thalheim.ioMic92Do you know what change introduces this?16:11:46
@p14:matrix.orgp14
In reply to @joerg:thalheim.io
Do you know what change introduces this?
I do not, sorry, my time budget blew and I am now afk for a bit. Seems master is ok but not staging.
16:16:50
@joerg:thalheim.ioMic92Maybe give a heads up in the staging channel at least.16:17:23
@joerg:thalheim.ioMic92The pull request is only improving the error message, but not fixing the root cause, which is on the nixpkgs side.16:17:55
@0lach:matrix.orgLach I believe I have once fixed illegal utf8 logs, it is not correct to skip those lines entirely: https://github.com/NixOS/nix/pull/5160 17:46:50
@0lach:matrix.orgLach There would always be those errors on nixpkgs side, because builder scripts aren't forced to output utf8-only logs, yet nix is converting those logs to json, and json library only expects utf8 strings 17:50:02
7 Dec 2024
@rhelmot:matrix.orgrhelmotIs it even possible to use garbage collection with a diverted store? No matter what I do, gc roots get created as /nix/store symlinks and the garbage collector deletes out of /nix/store03:47:06
@upidapi:matrix.orgupidapi joined the room.16:59:55
@cy:cything.iocy joined the room.20:58:08
8 Dec 2024
@marinelli:matrix.org@marinelli:matrix.org left the room.09:35:00
@tomberek:matrix.orgtomberekThat feels like a bug.20:10:19
9 Dec 2024
@joerg:thalheim.ioMic92 Lach: isn't json supposed to be either unicode or ascii with escaped chars? 12:16:33
@0lach:matrix.orgLach Ascii with escaped chars shouldn't include invalid unicode sequences (Unpaired surrogates are allowed at max), yet builder scripts might output invalid unicode sequences, and nix worker protocol requires this output to be encoded to json, which is impossible in general, invalid utf-8 sequences must be replaced 12:48:07
10 Dec 2024
@sandro:supersandro.deSandro 🐧 joined the room.15:24:22

Show newer messages


Back to Room ListRoom Version: 6