-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Dereference links on install #740
Dereference links on install #740
Conversation
Cool! What does dereferencing mean? Will this affect how we install other plugins? |
It means: "If the file to be copied is a symbolic link, do not copy the link, but the file it points to instead."
It will affect symbolic links only. The installation of plugins containing regular files (which I assume are all existing plugins to date) won't change at all. |
Thanks! Do you know if -L is portable alright? |
At least it's part of GNU coreutils since 22 years and busybox since 14 years, so I would assume so. Do you know if there are any other |
@carlfriedrich On macOS it reads: -L If the -R option is specified, all symbolic links are followed. |
Great, that's exactly what it's supposed to do. |
@jorgebucaran So will you merge this or are there any doubts left? |
Yes, of course! Sorry to keep you waiting and thanks! 🙌 |
@jorgebucaran Great, thanks a lot! ❤️ Do you have plans for an upcoming release containing the patch? |
You bet! Should be good now. |
Yaaaay! 🥳 Thanks a lot for your quick support! |
I have a plugin which shares code for zsh and fish. I'd like to symlink this shared code file to the
functions
directory within the git repository, so that it gets installed by fisher. Unfortunately fisher does not dereference links and hence installs a broken link in this case.This PR adds the
-L
argument tocp
in order to dereference links on install and update.