flathub / com.syntevo.SmartGit

https://flathub.org/apps/details/com.syntevo.SmartGit
3 stars 3 forks source link

Error when installing: Wrong size for extra data #94

Closed Jasper-Ben closed 11 months ago

Jasper-Ben commented 11 months ago

Getting following error during install:

sudo flatpak install flathub com.syntevo.SmartGit
Looking for matches…

com.syntevo.SmartGit permissions:
    ipc     network     fallback-x11    ssh-auth    x11    dri    file access [1]    dbus access [2]

    [1] host, xdg-run/gnupg:ro, xdg-run/keyring
    [2] org.freedesktop.secrets, org.gnome.keyring.SystemPrompter

        ID                            Branch          Op         Remote          Download
 1. [✗] com.syntevo.SmartGit          stable          i          flathub         39.5 kB / 105.4 MB

Error: Wrong size for extra data https://www.syntevo.com/downloads/smartgit/smartgit-linux-22_1_7.tar.gz
error: Failed to install com.syntevo.SmartGit: Wrong size for extra data https://www.syntevo.com/downloads/smartgit/smartgit-linux-22_1_7.tar.gz
x80486 commented 11 months ago

The current URL points to a dead resource 😑

[x80486@uplink:~/Temporal/no_backup]$ wget --no-cache --output-document smartgit-linux-22_1_7.tar.gz https://www.syntevo.com/downloads/smartgit/smartgit-linux-22_1_7.tar.gz

--2023-11-29 14:32:11--  https://www.syntevo.com/downloads/smartgit/smartgit-linux-22_1_7.tar.gz
Resolving www.syntevo.com (www.syntevo.com)...
Connecting to www.syntevo.com (www.syntevo.com)... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.syntevo.com/smartgit/download/ [following]
--2023-11-29 14:32:11--  https://www.syntevo.com/smartgit/download/
Reusing existing connection to [www.syntevo.com]:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'smartgit-linux-22_1_7.tar.gz'

smartgit-linux-22_1_7.tar.gz                             [ <=>                                                                                                                   ]  37.96K  --.-KB/s    in 0.002s  

2023-11-29 14:32:11 (20.0 MB/s) - 'smartgit-linux-22_1_7.tar.gz' saved [38868]

I think what's happening is that after a new version is released, the previous ones are put under https://www.syntevo.com/archive/...

@tmssngr, can you confirm this?

tmssngr commented 11 months ago

Yes, this is correct.

x80486 commented 11 months ago

Yes, this is correct.

Do you think you would be able to maintain the files where they are, or provide some other location where they can stay long term without changing the URL?

Problem is that with such change, it's impossible to install previous versions for Flatpak, because it relies on a fixed location, size, and checksum.

Jasper-Ben commented 11 months ago

I think what's happening is that after a new version is released, the previous ones are put under https://www.syntevo.com/archive/...

Ah yes. That's annoying 😑 that's also the reason why we use the flatpak install in the first place (thanks for maintaining btw). Previously we used ansible for rolling out smartgit to dev machines but the changing download location makes ops really annoying. Before switching to flatpak we "worked around" this by never using the latest release, so that the download link would stay consistently on the "archive" URL.

Tbqh, what a terrible way to distribute software 😶

Jasper-Ben commented 11 months ago

Maybe @tmssngr might be able to get the distribution process reworked internally? 😇

tmssngr commented 11 months ago

Do you think you would be able to maintain the files where they are, or provide some other location where they can stay long term without changing the URL?

I've fixed the URL in the smartgit-22_1-linux.txt file. Sorry for the troubles.