zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
866 stars 39 forks source link

Download latest tag if latest not found #96

Closed kwekewk closed 1 month ago

kwekewk commented 7 months ago
user@8b1c32d3c89a:~$ ./eget sxyazi/yazi --tag v0.1.5
https://github.com/sxyazi/yazi/releases/download/v0.1.5/yazi-x86_64-unknown-linux-gnu.zip
Downloading 100% [================================================================================] (4.4/4.4 MB, 55.640 MB/s)        
Extracted `yazi-x86_64-unknown-linux-gnu/yazi` to `yazi`
user@8b1c32d3c89a:~$ ./eget sxyazi/yazi
404 Not Found (URL: https://api.github.com/repos/sxyazi/yazi/releases/latest)
rwperrott commented 1 month ago

An amusing irony was that you micro repo didn't have a latest release when I tried eget zedidia/micro, as a test :)

zyedidia commented 1 month ago

I think this generally means you have to use the --pre-release option, or there are no releases at all.

If this happened to you for micro it must have been while a new release was being made.