Skip to content

Commit 25a8e93

Browse files
committed
tools: fix linter when permittedInsecurePackages is empty
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent eff293f commit 25a8e93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/dep_updaters/update-nixpkgs-pin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ nix-instantiate -I "nixpkgs=$NIXPKGS_PIN_FILE" --eval --strict --json -E "
8181
}
8282
" | jq -r '"{
8383
pkgs ? import ./pkgs.nix {
84-
config.permittedInsecurePackages = [ \(.permittedInsecurePackages | map(@json) | join(" ")) ];
84+
config.permittedInsecurePackages = [ \(.permittedInsecurePackages | if length > 0 then "\(map(@json) | join(" ")) " else "" end)];
8585
},
8686
}:
8787

0 commit comments

Comments
 (0)