Merge pull request #325563 from corngood/nuget-to-nix-fix

nuget-to-nix: fix hash generation when resolving multiple sources
This commit is contained in:
Aleksana
2024-07-09 17:56:12 +08:00
committed by GitHub
@@ -70,6 +70,7 @@ for package in *; do
break
else
if hash=$(nix-prefetch-url "$url" 2>"$tmp"/error); then
hash="$(nix-hash --to-sri --type sha256 "$hash")"
# If multiple remote sources are enabled, nuget will try them all
# concurrently and use the one that responds first. We always use the
# first source that has the package.