1this derivation will be built:2 /nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv3building '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv' on 'ssh-ng://nix@eliza'4building '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv'5treefmt-check> treefmt v2.5.0traversed 1244 files6treefmt-check> emitted 536 files for processing7treefmt-check> formatted 536 files (3 changed) in 6.235s8treefmt-check> M openwrt/nix_uci/__init__.py9treefmt-check> diff --git a/openwrt/nix_uci/__init__.py b/openwrt/nix_uci/__init__.py10treefmt-check> index 7a6e3ee..2e1fbe6 10064411treefmt-check> --- a/openwrt/nix_uci/__init__.py12treefmt-check> +++ b/openwrt/nix_uci/__init__.py13treefmt-check> @@ -127,13 +127,18 @@ def serialize_uci(configs: dict[str, Any], secrets: dict[str, str]) -> str:14treefmt-check> for section_name, section in sections.items():15treefmt-check> if isinstance(section, list):16treefmt-check> # Use shell loop to properly delete all existing list sections17treefmt-check> - lines.append(f"# Clear all existing {config_name}.@{section_name} sections")18treefmt-check> - lines.append(f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done")19treefmt-check> + lines.append(20treefmt-check> + f"# Clear all existing {config_name}.@{section_name} sections"21treefmt-check> + )22treefmt-check> + lines.append(23treefmt-check> + f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done"24treefmt-check> + )25treefmt-check> lines.append("")26treefmt-check> 27treefmt-check> # Add new sections28treefmt-check> lines.extend(29treefmt-check> - f"uci add {config_name} {section_name}" for _i in range(len(section))30treefmt-check> + f"uci add {config_name} {section_name}"31treefmt-check> + for _i in range(len(section))32treefmt-check> )33treefmt-check> 34treefmt-check> for idx, list_obj in enumerate(section):35error: build of '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv' on 'ssh-ng://nix@eliza' failed: Cannot build '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv'.36 Reason: builder failed with exit code 1.37 Output paths:38 /nix/store/0lilbxga6hcdhg56nxjsrkd7vis8k5i1-treefmt-check39 Last 25 log lines:40 > index 7a6e3ee..2e1fbe6 10064441 > --- a/openwrt/nix_uci/__init__.py42 > +++ b/openwrt/nix_uci/__init__.py43 > @@ -127,13 +127,18 @@ def serialize_uci(configs: dict[str, Any], secrets: dict[str, str]) -> str:44 > for section_name, section in sections.items():45 > if isinstance(section, list):46 > # Use shell loop to properly delete all existing list sections47 > - lines.append(f"# Clear all existing {config_name}.@{section_name} sections")48 > - lines.append(f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done")49 > + lines.append(50 > + f"# Clear all existing {config_name}.@{section_name} sections"51 > + )52 > + lines.append(53 > + f"while uci -q delete {config_name}.@{section_name}[-1] 2>/dev/null; do :; done"54 > + )55 > lines.append("")56 > 57 > # Add new sections58 > lines.extend(59 > - f"uci add {config_name} {section_name}" for _i in range(len(section))60 > + f"uci add {config_name} {section_name}"61 > + for _i in range(len(section))62 > )63 > 64 > for idx, list_obj in enumerate(section):65 For full logs, run:66 nix log /nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv67error: Cannot build '/nix/store/xlnk4jy167ndswg9x9hpdjali27ph4jl-treefmt-check.drv'.68 Reason: builder failed with exit code 1.69 Output paths:70 /nix/store/0lilbxga6hcdhg56nxjsrkd7vis8k5i1-treefmt-check