eget icon indicating copy to clipboard operation
eget copied to clipboard

Fetch more than one archive from a repository?

Open lwbt opened this issue 4 months ago • 0 comments

I have the following configuration:

[global]
    upgrade_only = true

["ahmetb/kubectx"]
    asset_filters = [ "linux", ".tar.gz" ]
    all = true
    file = "kube*"
    target = "~/.local/bin/"

https://github.com/ahmetb/kubectx/releases

file = "kube*" should extract kubectx and kubens into ~/.local/bin/.

But instead I get this:

eget --download-all
2 candidates found for asset chain: please select manually
(1) kubectx_v0.9.5_linux_x86_64.tar.gz
(2) kubens_v0.9.5_linux_x86_64.tar.gz
Enter selection number: Error reading selection
one or more errors occurred while downloading: [exit status 1]

Am I interpreting https://github.com/zyedidia/eget/issues/15 wrong and it does not address my issue?

I wouldn't mind doing this instead:

["ahmetb/kubectx"]
    asset_filters = [ "kubectx", "linux", ".tar.gz" ]
    file = "kubectx"
    target = "~/.local/bin/"
["ahmetb/kubectx"]
    asset_filters = [ "kubens", "linux", ".tar.gz" ]
    file = "kubectx"
    target = "~/.local/bin/"

But it looks like eget fails to parse the file and immediately exits. Which I would consider another bug, it should tell a user that the file is not valid.

lwbt avatar Feb 22 '24 23:02 lwbt