Merge pull request #240939 from PedroHLC/nix-prefetch-git-sri
nix-prefetch-git: add sri-hash to output
This commit is contained in:
commit
99152c0f2e
|
@ -390,6 +390,7 @@ print_results() {
|
||||||
"date": "$(json_escape "$commitDateStrict8601")",
|
"date": "$(json_escape "$commitDateStrict8601")",
|
||||||
"path": "$(json_escape "$finalPath")",
|
"path": "$(json_escape "$finalPath")",
|
||||||
"$(json_escape "$hashType")": "$(json_escape "$hash")",
|
"$(json_escape "$hashType")": "$(json_escape "$hash")",
|
||||||
|
"hash": "$(nix-hash --to-sri --type $hashType $hash)",
|
||||||
"fetchLFS": $([[ -n "$fetchLFS" ]] && echo true || echo false),
|
"fetchLFS": $([[ -n "$fetchLFS" ]] && echo true || echo false),
|
||||||
"fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false),
|
"fetchSubmodules": $([[ -n "$fetchSubmodules" ]] && echo true || echo false),
|
||||||
"deepClone": $([[ -n "$deepClone" ]] && echo true || echo false),
|
"deepClone": $([[ -n "$deepClone" ]] && echo true || echo false),
|
||||||
|
|
Loading…
Reference in a new issue