From cde8452f059bc2f918b43c451404ea8927e34b47 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Wed, 16 Apr 2025 11:51:38 +0300 Subject: fix(zkvmLib): Don't remove final entry in lockfile The AWK script goes to the next line when a property is found. If the lock file ends on a property, the next line will be "fetched", but that is after the end of the file, so we'll never reach the printing logic. We're adding a blank line to the end of the lock file, so we never hit this edge case. --- zkvmLib.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'zkvmLib.nix') diff --git a/zkvmLib.nix b/zkvmLib.nix index 29d1464..539b54e 100644 --- a/zkvmLib.nix +++ b/zkvmLib.nix @@ -78,6 +78,7 @@ let tail -n +4 ./guest/Cargo.lock >> lockfile tail -n +4 ../../guests/${guest}/Cargo.lock >> lockfile + echo >> lockfile awk '${removeDuplicates}' lockfile > "$out/Cargo.lock" ''; -- cgit v1.2.3