Skip to content

Commit ade4e37

Browse files
helgeuclaude
andcommitted
fix(nix): use jq -j to preserve exact file content in hook generation
jq -r appends a trailing newline to output, making the hook file 1 byte larger than what rtk verify expects. This causes the integrity check to fail with a hash mismatch. jq -j outputs raw strings without adding a trailing newline, preserving the exact content. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent ef74fa2 commit ade4e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/homeManagerModule.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rtkPackages: {
2929
relpath=$(jq -r ".files[$i].path" manifest.json)
3030
mode=$(jq -r ".files[$i].mode" manifest.json)
3131
mkdir -p "$out/$(dirname "$relpath")"
32-
jq -r ".files[$i].content" manifest.json > "$out/$relpath"
32+
jq -j ".files[$i].content" manifest.json > "$out/$relpath"
3333
chmod "$mode" "$out/$relpath"
3434
done
3535
'';

0 commit comments

Comments
 (0)