nuget-to-json: fix tools not being added to the lockfile (#366574)

This commit is contained in:
David McFarland
2024-12-19 15:44:00 -04:00
committed by GitHub
@@ -62,7 +62,7 @@ done
fi
# packages in the nix store should have an empty metadata file
used_source="$(jq -r '.source // ""' "$version"/.nupkg.metadata)"
used_source="$(jq -r 'if has("source") then .source else "" end' "$version"/.nupkg.metadata)"
found=false
if [[ -z "$used_source" || -d "$used_source" ]]; then