mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
dotnet-sdk: update.sh - fail if determining a nuget hash fails
(cherry picked from commit f79c73c2ca)
This commit is contained in:
committed by
github-actions[bot]
parent
9462344318
commit
c4e4ed5cf8
@@ -64,6 +64,11 @@ generate_package_list() {
|
||||
local url hash
|
||||
url="${nuget_url}${pkg,,}/${version,,}/${pkg,,}.${version,,}.nupkg"
|
||||
hash="$(nix-prefetch-url "$url")"
|
||||
if [[ -z "$hash" ]]; then
|
||||
echo "Failed to fetch hash for $url" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo " (fetchNuGet { pname = \"${pkg}\"; version = \"${version}\"; sha256 = \"${hash}\"; })"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user