zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
3.15k stars 129 forks source link

wrong packages url in .zinit-get-package #14

Closed r4lv closed 3 years ago

r4lv commented 3 years ago

Describe the bug

I am not able to install packages using the pack"" ice — I assume this is because the .zinit-get-package function has the wrong URL prefix zinit-package-... hardcoded:

https://github.com/zdharma-continuum/zinit/blob/e2b553ba5caabcf7ab4a31a7b31ae03ce66f3820/zinit-install.zsh#L127

while the packages live under zsh-package-..., e.g. https://github.com/zdharma-continuum/zsh-package-fzf

To Reproduce

I have the following in my .zshrc

zinit wait"1" lucid if'[[ -z "$commands[fzf]" ]]' pack"bgn-binary+keys" for fzf

I get the following output when I open a new shell:

.zinit-get-package:25: datei oder Verzeichnis nicht gefunden: /tmp/tmp.06wsNmEHUB                                       
Error: the package `fzf` couldn't be found.

Expected behavior

Correcting the URL in zinit-install.zsh, and deleting the compiled .zwc fix this issue, and the packages install as expected.

Versions:

pschmitt commented 3 years ago

Oh no, I named the repos wrong. Will fix asap.

pschmitt commented 3 years ago

I don't get how I didn't catch that during my tests... Anyway I renamed all the repositories..! Sorry for that.