From 25a8e93c76251b8cfd1cfaa4c70de673a31638ff Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 12 Aug 2026 00:52:28 +0200 Subject: [PATCH] tools: fix linter when `permittedInsecurePackages` is empty Signed-off-by: Antoine du Hamel --- tools/dep_updaters/update-nixpkgs-pin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dep_updaters/update-nixpkgs-pin.sh b/tools/dep_updaters/update-nixpkgs-pin.sh index 65c6ff2465f1..638fa80d560e 100755 --- a/tools/dep_updaters/update-nixpkgs-pin.sh +++ b/tools/dep_updaters/update-nixpkgs-pin.sh @@ -81,7 +81,7 @@ nix-instantiate -I "nixpkgs=$NIXPKGS_PIN_FILE" --eval --strict --json -E " } " | jq -r '"{ pkgs ? import ./pkgs.nix { - config.permittedInsecurePackages = [ \(.permittedInsecurePackages | map(@json) | join(" ")) ]; + config.permittedInsecurePackages = [ \(.permittedInsecurePackages | if length > 0 then "\(map(@json) | join(" ")) " else "" end)]; }, }: