zyedidia / eget

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

eget downloads vscode extension rather than binary #76

Open Dialga opened 1 year ago

Dialga commented 1 year ago

eget seems to prefer downloading the vscode extension rather than the release binary.

$ eget rome/tools
https://github.com/rome/tools/releases/download/lsp/v0.24.2/rome_lsp-linux-x64.vsix
Downloading 100% [=======================================================================================================================] (5.4/5.4 MB, 966.668 kB/s)
Extracted `rome_lsp-linux-x64.vsix` to `/home/me/bin/tools
$ tools
-bash: /home/me/bin/tools: cannot execute binary file: Exec format error

Where I was expecting rome-linux-x64 to be downloaded.

dufferzafar commented 1 year ago

When a repository offers multiple binaries as part of their releases eget uses the one that was released latest which does happen to be the VS Code extension.

You'd need to specify the tag to get what you want: eget rome/tools -t cli