Wget doesn't support https

Issue #2 wontfix
Leonard Hansen created an issue
op@lightwhale:~$ wget https://download.qemu.org/qemu-8.0.2.tar.xz
wget: not an http or ftp url: https://download.qemu.org/qemu-8.0.2.tar.xz

Comments (8)

  1. Stephan Henningsen

    Confirmed, thanks for submitting. We can’t have a broken wget in Lightwhale!

    The current wget implementation comes from busybox, and adding SSL looks like it’s going to be somewhat of a hassle; it can either be done using a semi-broken implementation of SSL, or rely on external openssl tools — which of course would have to be installed first and add to the image size. I don’t want any of those options.

    A second options is to drop the busybox implementation and add the package directly from buildroot. This compiles wget from source and actually build a functioning binary, as I just tested. But the wgetbinary alone is 550k! After removing it from busybox, this still adds 547k to the raw cpio image (213k to the squashfs image).

    I don’t like the second option either; wget is too big. There’s already curl which works with https. I know wget it's popular, but two built-in http clients is a luxury we cannot have in Lightwhale, sorry.

    Therefore I’ll pick options three: Delete wget from Lightwhale in the upcoming release.

    cannot have.

    Please use curl instead, e.g.:

    curl -JORL https://download.qemu.org/qemu-8.0.2.tar.xz

    On a side note: I’m personally using http from httpie.io from my workstation as I find this client much easier to use. I’ve long wanted to include it as a bash alias that uses a container. And I just noticed that not only is there an official httpie container at https://hub.docker.com/r/alpine/httpie/, but in their README they’re also suggesting the shell aliases I want. I’ll test this out and possibly add such an alias. In the meantime, you can try this out yourself, if you like. I’d love to hear the feedback ;)

    hhjj.

  2. Stephan Henningsen

    Marked as wontfix because this reflects my solution better; I won't fix wget, instead I delete it, and recommend using curl or httpie .

  3. Log in to comment