Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update subcommand does not actually update package #501

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

octarect
Copy link

zplug update command does not work correctly for gh-r, I guess. It only rewrites INDEX, but leave executable file old.
Assuming that we have already installed peco/peco according to Wiki,

zplug "peco/peco", as:command, from:gh-r

and we update it by zplug update peco/peco. However our command version won't change.
In case of update, the replacement of executable in __zplug::utils::releases::index() do nothing as a result. For example, the variable binaries about peco/peco contains the following;

peco peco_linux_amd64/peco peco peco_linux_amd64/peco peco ...

the first peco is the version currently in use, so nothing happens by mv -f "$binaries[1]" "$cmd". (mv -f "peco" "peco").

I fix code to push newly downloaded file to binaries as priority.

@octarect octarect requested a review from a team as a code owner August 19, 2018 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant