Skip to content

Commit cde8452

Browse files
committed
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.
1 parent 8b7eae6 commit cde8452

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zkvmLib.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ let
7878
7979
tail -n +4 ./guest/Cargo.lock >> lockfile
8080
tail -n +4 ../../guests/${guest}/Cargo.lock >> lockfile
81+
echo >> lockfile
8182
8283
awk '${removeDuplicates}' lockfile > "$out/Cargo.lock"
8384
'';

0 commit comments

Comments
 (0)