Skip to content

Commit

Permalink
nuget-to-json: fix tools not being added to the lockfile (NixOS#366574)
Browse files Browse the repository at this point in the history
  • Loading branch information
corngood authored Dec 19, 2024
2 parents 56d8e7b + 313f706 commit d5d9895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/by-name/nu/nuget-to-json/nuget-to-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5d9895

Please sign in to comment.