Nix Hackers | 913 Members | |
| For people hacking on the Nix package manager itself | 191 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Dec 2024 | ||
| * I just hit what looks like this old issue: https://github.com/NixOS/nixpkgs/issues/138157
| 14:41:23 | |
| I 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 issue | 14:44:37 | |
| p14: https://github.com/NixOS/nix/pull/11921 | 15:53:27 | |
| This is while running 'nix develop' though, there is no indication of any build taking place | 15:54:37 | |
| * This is while running 'nix develop' on any package in staging though, there is no indication of any build taking place | 15:54:55 | |
| 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 | |
| Do you know what change introduces this? | 16:11:46 | |
In reply to @joerg:thalheim.ioI 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 | |
| Maybe give a heads up in the staging channel at least. | 16:17:23 | |
| The pull request is only improving the error message, but not fixing the root cause, which is on the nixpkgs side. | 16:17:55 | |
| 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 | |
| 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 | ||
| Is 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/store | 03:47:06 | |
| 16:59:55 | ||
| 20:58:08 | ||
| 8 Dec 2024 | ||
| 09:35:00 | ||
| That feels like a bug. | 20:10:19 | |
| 9 Dec 2024 | ||
| Lach: isn't json supposed to be either unicode or ascii with escaped chars? | 12:16:33 | |
| 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 | ||
| 15:24:22 | ||
| 👉️👈️ Can I motivate someone to fix https://github.com/NixOS/nix/issues/8074 ? 🥺 | 15:25:14 | |
| 11 Dec 2024 | ||
| 05:09:28 | ||
| 12:05:42 | ||
| 14:20:17 | ||
| I'm having an issue that in my org, the simple invocation I'd like instead to point I've tried for example to point it at a local git repository, but this results in nix trying to clone the nixpkgs git repository, which is incredibly expensive in time, CPU time, disk and bandwidth. How do others handle this, or does everyone simply supply a github token? I'm just not sure this is a scalable approach, and it would be nice to drop the requirement of github being visible to the machine invoking nix. | 14:56:05 | |
| http_proxy envs and the like? | 14:57:34 | |
| or just copy the downloaded store entry to the machine | 14:57:48 | |
| the one place where this happens to me, I just have tokens | 14:58:02 | |
| I'm not clear how a http proxy helps matters? Wouldn't that again have the effect of concentrating requests to go through one IP and requiring that they're authenticated? Since it uses https I don't see how the proxy could even provide the authentication if I was inclined to go that route. | 14:59:36 | |
| Having a store on the machine could work, but I need to persuade nix not to query the github API at all. | 14:59:55 | |