zyedidia / eget

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

Eget.toml completely ignored #97

Closed snoreme closed 2 months ago

snoreme commented 7 months ago

Eget keep asking selection, even though already configured inside .eget.toml

zyedidia commented 2 months ago

Could you provide more information, such as your .eget.toml to reproduce the issue?

snoreme commented 2 months ago
(user) user@ip-10-0-109-55:~$ cat .eget.toml 
[global]
github_token = "ghp_1234567890"
quiet = false
show_hash = false
upgrade_only = true
target = "/usr/local/bin"

["zyedidia/micro"]
upgrade_only = false
show_hash = true
asset_filters = [ "static", ".tar.gz" ]
target = "/usr/local/bin/micro"

["juzeon/tun4colab"]
asset_filters = "tun4colab"

(user) user@ip-10-0-109-55:~$ eget zyedidia/micro
2 matches found: please select manually
(1) micro-2.0.13-linux64-static.tar.gz
(2) micro-2.0.13-linux64.tar.gz
Enter selection number: 
(user) user@ip-10-0-109-55:~$ eget juzeon/tun4colab
no candidates found: please select manually
(1) tun4colab
(2) tun4colab.exe
Enter selection number:
(user) user@ip-10-0-109-55:~$ 
zyedidia commented 2 months ago

This problem is because the configuration file is malformed, but eget did not display an error. The line asset_filters = "tun4colab" should be asset_filters = [ "tun4colab" ]. This problem (no error displayed) was reported in #65 and #84 and fixed in #85, so I believe this issue can also be closed now.