dotnet/update.nix: use tag name to check for updates

This stops it from missing SDK-only updates.
This commit is contained in:
David McFarland
2024-12-05 15:36:24 -04:00
parent d238584a09
commit dd9608a5d8
+2 -3
View File
@@ -18,7 +18,7 @@
}:
let
inherit (lib.importJSON releaseManifestFile) channel release;
inherit (lib.importJSON releaseManifestFile) channel tag;
pkg = stdenvNoCC.mkDerivation {
name = "update-dotnet-vmr-env";
@@ -96,9 +96,8 @@ writeScript "update-dotnet-vmr.sh" ''
cd "$tmp"
curl -fsSL "$releaseUrl" -o release.json
release=$(jq -r .release release.json)
if [[ -z $tag && "$release" == "${release}" ]]; then
if [[ -z $tag && "$tagName" == "${tag}" ]]; then
>&2 echo "release is already $release"
exit
fi