Stop mise wrappers from waiting out the release cooldown
The wrappers install and upgrade their tool on first run, so the cooldown held new versions back for days. Refresh the stubs on existing installs too, since the generator change alone only reaches fresh installs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
76117fb8ba
commit
ab367b9477
@@ -14,9 +14,14 @@ bin=${3:-$command}
|
|||||||
|
|
||||||
mkdir -p "$HOME/.local/bin"
|
mkdir -p "$HOME/.local/bin"
|
||||||
|
|
||||||
|
# These tools install and upgrade on first run, so mise's release cooldown would
|
||||||
|
# hold a new version back for days after it ships. Exported rather than set on
|
||||||
|
# the install line alone, so resolving the version to execute agrees with the
|
||||||
|
# one just installed.
|
||||||
rm -f "$HOME/.local/bin/$command"
|
rm -f "$HOME/.local/bin/$command"
|
||||||
cat >"$HOME/.local/bin/$command" <<EOF
|
cat >"$HOME/.local/bin/$command" <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
export MISE_MINIMUM_RELEASE_AGE=0
|
||||||
mise use -g "$package" || exit 1
|
mise use -g "$package" || exit 1
|
||||||
exec mise x "$package" -- "$bin" "\$@"
|
exec mise x "$package" -- "$bin" "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Refresh mise stubs so tools take new releases immediately"
|
||||||
|
|
||||||
|
omarchy-refresh-applications
|
||||||
Reference in New Issue
Block a user