mirror of
https://github.com/neovim/neovim.git
synced 2026-08-02 05:39:12 +00:00
fix(pack): do not write the lockfile when installing from it #41031
Problem: Installing plugins during lockfile synchronization always writes the lockfile, even though its content is used during install. This might be a problem if the lockfile (itself or its parent directory) is not writeable (can only be read). Solution: Do not write the lockfile when installing directly from it. This is okay since the `src` and `rev` are used directly from the lockfile and don't change at this step. While potential change in `version` (that must be written to the lockfile) is handled in other code path.
This commit is contained in:
committed by
GitHub
parent
3fa5904cf2
commit
4bba83b4b7
@@ -967,7 +967,6 @@ local function lock_sync(confirm, specs)
|
||||
end)
|
||||
git_ensure_exec()
|
||||
install_list(to_install, confirm)
|
||||
lock_write()
|
||||
end
|
||||
|
||||
if #to_repair > 0 then
|
||||
|
||||
Reference in New Issue
Block a user