Unverified Commit 3a43eb3a authored by Defelo's avatar Defelo
Browse files

uiua-unstable: fix update script

Recently a new `latest` release has been created which is automatically
updated to always contain binaries for the latest `main` branch [1].
This new release would have been used by `uiua-unstable.updateScript`,
however `uiua-unstable` should only be used for pre-releases like
release candidates and dev previews, not for the latest `main` branch.
Since `nix-update` doesn't seem to support ignoring specific versions,
the version regex of the `update-stable.sh` script is reused and
extended to also allow pre-releases like `0.16.0-dev.1`.

[1] https://github.com/uiua-lang/uiua/releases/tag/latest
parent a6e4ff30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update

nix-update --override-filename pkgs/by-name/ui/uiua/unstable.nix --version unstable uiua-unstable
nix-update --override-filename pkgs/by-name/ui/uiua/unstable.nix --version-regex '^(\d*\.\d*\.\d*.*)$' uiua-unstable