You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packer generates symlinks to origin directory for local plugins, not to other symlinks. This leads to problem with updating local plugins if they are managed with package manager like brew. After updating origin directory will not exist and symlink will be broken. See steps below.
nvim --version:
Output
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"
Run :checkhealth for more info
git --version:
git version 2.39.2
Operating system/version:
macOS: Version 13.2.1 (22D68)
Terminal name/version:
Alacritty: Version 0.12.0-rc1 (1)
Steps to reproduce
Run nvim and add some local plugin installed with brew to plugins, for example, use '/opt/homebrew/opt/fzf';
Run :PackerSync;
Exit nvim;
Go to plugins installation directory: run cd ~/.local/share/nvim/site/pack/packer/start;
Run ls -lah.
Actual behaviour
Find local plugin, in this case, it's fzf. Symlink points to Cellar, where package is stored: fzf@ -> /opt/homebrew/Cellar/fzf/0.38.0 .
Expected behaviour
fzf@ -> /opt/homebrew/opt/fzf. ls -lah /opt/homebrew/opt/fzf shows /opt/homebrew/opt/fzf@ -> ../Cellar/fzf/0.38.0, so the chain is ~/.local/share/nvim/site/pack/packer/start/fzf@ -> /opt/homebrew/opt/fzf@ -> /opt/homebrew/Cellar/fzf/0.38.0.
After updating fzf to next version, for example, to 0.39.0, the directory 0.38.0 will be removed and 0.39.0 created, symlink /opt/homebrew/opt/fzf will be recreated pointing to 0.39.0. So the symlink in packer/start will not be broken.
Packer generates symlinks to origin directory for local plugins, not to other symlinks. This leads to problem with updating local plugins if they are managed with package manager like
brew
. After updating origin directory will not exist and symlink will be broken. See steps below.nvim --version
:Output
git --version
:git version 2.39.2
Operating system/version:
macOS: Version 13.2.1 (22D68)
Terminal name/version:
Alacritty: Version 0.12.0-rc1 (1)
Steps to reproduce
nvim
and add some local plugin installed withbrew
to plugins, for example,use '/opt/homebrew/opt/fzf'
;:PackerSync
;nvim
;cd ~/.local/share/nvim/site/pack/packer/start
;ls -lah
.Actual behaviour
Find local plugin, in this case, it's
fzf
. Symlink points toCellar
, where package is stored:fzf@ -> /opt/homebrew/Cellar/fzf/0.38.0
.Expected behaviour
fzf@ -> /opt/homebrew/opt/fzf
.ls -lah /opt/homebrew/opt/fzf
shows/opt/homebrew/opt/fzf@ -> ../Cellar/fzf/0.38.0
, so the chain is~/.local/share/nvim/site/pack/packer/start/fzf@ -> /opt/homebrew/opt/fzf@ -> /opt/homebrew/Cellar/fzf/0.38.0
.After updating
fzf
to next version, for example, to0.39.0
, the directory0.38.0
will be removed and0.39.0
created, symlink/opt/homebrew/opt/fzf
will be recreated pointing to0.39.0
. So the symlink inpacker/start
will not be broken.packer files
Plugin specification file(s)
packer log file
nothing
packer compiled file
The text was updated successfully, but these errors were encountered: