zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.77k stars 123 forks source link

[bug]: `ver'nightly'` fails to select nightly release of program #483

Closed redxtech closed 1 year ago

redxtech commented 1 year ago

What happened?

When using the ver ice on a program, I wanted to select the latest nightly release. However, it is not working.

Leaving it omitted/empty defaults to latest, which is the latest stable release.

When I set it to nightly, it tells me gh-r: failed to find the correct GitHub release asset to download.

Steps to reproduce

in my zshrc:

zinit wait lucid from"gh-r" as"command" for \
    sbin"**/bin/nvim" ver"nightly"

when sourcing my zshrc, the error happens.

Relevant output

gh-r: failed to find the correct GitHub release asset to download.

Screenshots and recordings

No response

Operating System & Version

OS: linux-gnu | Vendor: pc | Machine: x86_64 | CPU: x86_64 | Processor: unknown | Hardware: x86_64

Zsh version

zsh 5.9 (x86_64-pc-linux-gnu)

Terminal emulator

kitty, xterm-kitty

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

vladdoster commented 1 year ago

@redxtech,

What is the output of:

zinit version
vladdoster commented 1 year ago

@redxtech,

I can't reproduce this error

Screenshot 2023-03-10 at 01 15 15
redxtech commented 1 year ago

The outcome of zinit version is probably not helpful:

Error: No plugin or snippet ID given (the last recognized ice was: version'').
You can try to prepend `@' to the ID if the last ice is in fact a plugin.
Note: The `ice` subcommand is now again required if not using the for-syntax.

That said, I'm fairly certain my zinit is decently out of date, so I just ran zinit update, and the issue is no longer happening.

Glad to see it was just an outdated version issue!

vladdoster commented 1 year ago

@redxtech,

Indeed, the version subcommand (see #440) is a recent addition to display the release tag + commits since

Regarding Zinit being out-of-date...

I'd nudge you towards the self-update sub-command which will only attempt to update Zinit. While update will (afaik) accomplish what you want, it will attempt to update everything (not a great default 🤷‍♂️) which takes longer and might make an unwanted change or version update.