aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-13 15:45:52 +0200
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-11-17 12:47:29 +0200
commitc3ac329c7ab1f57adb3c87b1bb60a3073da95e79 (patch)
tree9aa22bb6598c948fc377e222d1cb7aae562eb587 /runtime/lua/vim/_extui.lua
parent9e2599df05896f43ee63a2eed55641ab0e2d2934 (diff)
downloadrneovim-c3ac329c7ab1f57adb3c87b1bb60a3073da95e79.tar.gz
rneovim-c3ac329c7ab1f57adb3c87b1bb60a3073da95e79.tar.bz2
rneovim-c3ac329c7ab1f57adb3c87b1bb60a3073da95e79.zip
fix(pack)!: ensure plugin is fully absent if not fully installed
Problem: Currently it is possible to have plugin in a "partial install" state when `git clone` was successfull but `git checkout` was not. This was done to not checkout default branch by default in these situations (for security reasons). The problem is that it adds complexity when both dealing with lockfile (plugin's `rev` might be `nil`) and in how `src` and `version` are treated (wrong `src` - no plugin on disk; wrong `version` - "partial" plugin on disk). Solution: Treat plugin as "installed" if both `git clone` and `git checkout` are successful, while ensuring that not installed plugins are not on disk and in lockfile. This also means that if in 'init.lua' there is a `vim.pack.add()` with bad `version`, for first install there will be an informative error about it BUT next session will also try to install it. The solution is the same - adjust `version` beforehand.
Diffstat (limited to 'runtime/lua/vim/_extui.lua')
0 files changed, 0 insertions, 0 deletions