zdharma-continuum / zinit

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

[bug]: Regression. After updating zinit in April bpick in one of my recipes fails #243

Closed gentoosiast closed 2 years ago

gentoosiast commented 2 years ago

Describe the bug

I use following snippet in my config:

zinit ice as"completion" from"gh-r" id-as"dbrgn/_tealdeer" bpick"completions_zsh" \
    mv"completions_zsh -> _tldr" \
    reset
zinit light dbrgn/tealdeer

It worked well for me but after updating zinit in April it now fails:

Downloading dbrgn/tealdeer… (at label: dbrgn/_tealdeer…)
Didn't find correct Github release-file to download, try adapting bpick-ICE (the current bpick is: completions_zsh).

Steps to reproduce

  1. Put provided snippet in your ~/.zshrc
  2. Open the new shell and see how recipe fails

Expected behavior

It should download and install zsh completion file for tealdeer utility

Screenshots and recordings

No response

OS / Linux distribution

linux-gnu ubuntu x86_64 x86_64 x86_64 x86_64

Zsh version

5.8.1

Terminal emulator

Windows Terminal Version: 1.12.10982.0

If using WSL on Windows, which version of WSL

WSL2

Additional context

No response

vladdoster commented 2 years ago

I do agree this is a regression, but the better way to get the completion is

zinit for \
    as'completion' \
    id-as'tldr-completion/_tldr' \
    is-snippet \
  'https://raw.githubusercontent.com/dbrgn/tealdeer/main/completion/zsh_tealdeer'
vladdoster commented 2 years ago
Screen Shot 2022-05-02 at 06 52 12

I still suggest using the snippet recipe I suggested.

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 3.8.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: