VFox Tool Plugins Do Not Run Uninstall Hook #6154
Unanswered
Kenneth-Sills
asked this question in
Troubleshooting and bug reports
Replies: 2 comments 2 replies
-
|
@jdx This should be added or no? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
+1 pre-uninstall hook is needed for vfox backend |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
VFox offers an optional
pre_uninstallhook for plugins, similar to asdf. It does look like our included version of vfox does have this hook registered, but it doesn't actually run whenmise uninstallis used for tool plugins.The tool plugin development documentation doesn't advertise this, so it may be intentional, but the asdf backend does trigger the uninstall hook unlike the vfox backend. I couldn't see anywhere in the documentation that said this feature was not available for tool plugins, either, so it came as a bit of a surprise.
`hooks/pre_uninstall.lua`
`mise.toml`
`mise doctor`
version: 2025.8.21 linux-x64 (2025-08-27)
activated: yes
shims_on_path: no
self_update_available: yes
build_info:
Target: x86_64-unknown-linux-gnu
Features: DEFAULT, NATIVE_TLS, OPENSSL, RUSTLS_NATIVE_ROOTS, SELF_UPDATE
Built: Wed, 27 Aug 2025 09:31:22 +0000
Rust Version: rustc 1.89.0 (29483883e 2025-08-04)
Profile: release
shell:
/usr/bin/fish
fish, version 3.6.0
aqua:
baked in registry tools: 2076
dirs:
cache: ~/.cache/mise
config: ~/.config/mise
data: ~/.local/share/mise
shims: ~/.local/share/mise/shims
state: ~/.local/state/mise
config_files:
~/.config/mise/config.toml
~/projects/asdf-php/mise.toml
~/projects/asdf-php/test/basic/mise.toml
ignored_config_files: (none)
backends:
aqua
asdf
cargo
core
dotnet
gem
github
gitlab
go
npm
pipx
spm
http
ubi
vfox
plugins:
lua https://github.com/mise-plugins/mise-lua.git#9db66f3
php https://github.com/mise-plugins/asdf-php.git#e361a2c
toolset:
asdf:lua@5.1
core:java@21.0.2
core:node@24.7.0
git@/php-sury.git@8.3
github:composer/composer@2.8.11
path:
~/.local/share/mise/installs/php-sury/8.3
~/.local/share/mise/installs/github-composer-composer/2.8.11
~/.local/share/mise/installs/node/24.7.0/bin
~/.local/share/mise/installs/lua/5.1/bin
~/.local/share/mise/installs/lua/5.1/luarocks/bin
~/.local/share/mise/installs/java/21.0.2/bin
~/.local/bin
~/.cursor-server/cli/servers/Stable-e50823e9ded15fddfd743c7122b4724130c25df0/server/bin/remote-cli
~/.local/bin
~/.local/bin
/usr/local/bin
/usr/bin
/bin
/usr/games
/usr/local/games
env_vars:
MISE_SHELL=fish
settings:
auto_install true ~/.config/mise/config.toml
experimental true
/.config/mise/config.toml/projects"] ~/.config/mise/config.tomltrusted_config_paths ["
No problems found
`mise uninstall php-sury -v`
Beta Was this translation helpful? Give feedback.
All reactions