radicle-node-unstable: fix update script

Ensure pre-releases like `1.7.0-rc.1` are not chosen when the respective
full release (i.e. `1.7.0`) is available.
This commit is contained in:
Defelo
2026-03-18 21:36:01 +01:00
parent 6f5594ca37
commit ed87510abe
@@ -1,5 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils gnugrep common-updater-scripts nix-update
#!nix-shell -i bash -p coreutils gnugrep gnused common-updater-scripts nix-update
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+.*' | sort -rV | head -1)
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+.*' \
| sed -E 's/-(alpha|beta|rc)\./~\1./' | sort -rV | tr '~' - | head -1)
nix-update --version="$version" radicle-node-unstable --override-filename pkgs/by-name/ra/radicle-node/unstable.nix