| 7 Nov 2024 |
emily | if you want to hit the button and deploy the scripts stuff | 07:28:29 |
Vladimír Čunát | Today I feel overwhelmed, but I should do it this week if noone else steps in. | 07:31:09 |
emily | no worries :) | 07:32:49 |
emily | (I guess it's the infra team that has access to merging/deploying channel scripts PRs?) | 07:33:09 |
Vladimír Čunát | Yes. This runs on pluto.nixos.org. | 07:33:46 |
Paul Meyer (katexochen) | 2nd staging-next is open, are breaking changes already unrestricted on staging? | 13:43:43 |
Mic92 | In reply to @vcunat:matrix.org Today I feel overwhelmed, but I should do it this week if noone else steps in. what needs to be done? | 14:15:17 |
Tristan Ross | In reply to @katexochen:matrix.org 2nd staging-next is open, are breaking changes already unrestricted on staging? For staging, that will be the 8th | 16:07:42 |
hexa | In reply to @emilazy:matrix.org if you want to hit the button and deploy the scripts stuff deployed | 16:19:15 |
Tristan Ross | In reply to @emilazy:matrix.org https://github.com/NixOS/nixpkgs/pull/352603 is pending a decision for 24.11 Oh, I didn't see this one on my feed lol. I'll take a look. | 16:35:14 |
| 8 Nov 2024 |
hexa | pkgs.formats.yaml was migrated to yaml 1.2 output in the last remarshal update | 18:01:28 |
hexa | the output now unquotes certain outputs, that previously needed to be quoted in yaml 1.1 | 18:02:08 |
hexa | which otoh means that when parsed by a yaml 1.1 parser will lead to unexpected results | 18:02:23 |
hexa | $ cat test.json
{
"time": "22:30:00"
}
$ json2yaml test.json test.yaml
$ cat test.yaml
time: 22:30:00
$ python3
Python 3.12.7 (main, Oct 1 2024, 02:05:46) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.safe_load(open("test.yaml"))
{'time': 81000}
>>>
| 18:02:34 |
hexa | $ cat test.json
{
"enable": "on",
"disable": "off"
}
$ json2yaml test.json test.yaml
$ cat test.yaml
enable: on
disable: off
$ python3
Python 3.12.7 (main, Oct 1 2024, 02:05:46) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.safe_load(open("test.yaml"))
{'enable': True, 'disable': False}
| 18:02:50 |
emily | IIRC YAML 1.2 isn't that widely-adopted (though maybe that's changed?). is there a remarshal flag to use 1.1? | 18:03:31 |
hexa | I'm contemplating whether to provide the remarshal package in an old version for yaml 1.1 support | 18:03:44 |
hexa | and have a toggle for the formatter that switches the package around | 18:03:56 |
emily | I think we shouldn't change the output of those kinds of things in general except for clear bugfixes. even making escapeShellArg omit quotes when unnecessary broke tons of stuff across the entire ecosystem in and out of tree | 18:04:12 |
hexa | no, they switched from pyyaml to ruamel-yaml, which is a clean 1.1 to 1.2 swap | 18:04:13 |
emily | ah | 18:04:21 |
emily | https://github.com/remarshal-project/remarshal/commit/ee9a5b5d5ed82d90223a1d5fc74a4d546a034830 | 18:04:40 |
emily | looks like they endorse your plan | 18:04:45 |
hexa | that is the outcome of https://github.com/remarshal-project/remarshal/issues/52 | 18:05:16 |
emily | I would be inclined to just introduce pkgs.formats.yaml12 for the new version even | 18:06:22 |
hexa | or that, yeah | 18:07:00 |
| 9 Nov 2024 |
hexa | https://github.com/NixOS/nixpkgs/pull/354687 | 05:36:07 |
| 11 Nov 2024 |
| Jesse joined the room. | 03:50:08 |