We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89cca4c + 42a751a commit 8fed26cCopy full SHA for 8fed26c
pkgs/by-name/nu/nuget-to-json/nuget-to-json.sh
@@ -62,7 +62,8 @@ done
62
fi
63
64
# packages in the nix store should have an empty metadata file
65
- used_source="$(jq -r 'if has("source") then .source else "" end' "$version"/.nupkg.metadata)"
+ # packages installed with 'dotnet tool' may be missing 'source'
66
+ used_source="$(jq -r 'if has("source") then .source elif has("contentHash") then "__unknown" else "" end' "$version"/.nupkg.metadata)"
67
found=false
68
69
if [[ -z "$used_source" || -d "$used_source" ]]; then
0 commit comments