aqtinstall: Installation failed even when new version listed on list-qt (just released 6.4.0 today)
Describe the bug can’t download 6.4.0 even if it’s out and can be downloaded with the official installer
To Reproduce Steps to reproduce the behavior:
- run
aqtwith this command: python3 -m aqt install-qt mac desktop 6.4.0 - See error
ERROR : Failed to locate XML data for Qt version ‘6.4.0’. ==============================Suggested follow-up:==============================
- Please use ‘aqt list-qt mac desktop’ to show versions available.
Expected behavior it working
Desktop (please complete the following information):
- OS: macOS
aqtversion v2.2.3
Additional context it made me update the mantainance tool trying to update with the official installer, perhaps smth changed there?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 22 (11 by maintainers)
MirrorBrain team seems to stop its maintenance. OpenSuSE member continues development at https://github.com/openSUSE/mirrorbrain
Here’s one potential way to handle this problem:
When we fail to retrieve a sha256 checksum file, we could check the upload date of the file we’re trying to download. If the file was uploaded very recently, we could print an error message explaining that the SHA256 hash is not present on the server and there’s no secure way to download the file yet. For macOS/desktop/Qt6.4.0, the ‘Last modified’ date is present at this url: https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt6_640/Updates.xml.mirrorlist
I have noticed that at the
Updates.xml.mirrorlisturl, in addition to showing the ‘Last modified’ date, it will also show the SHA256 hash. It will not show this hash if theUpdates.xml.sha256file is not available yet.I like having good explanations in error messages, but I don’t really like this solution. There will always be a few hours every month where whatever tool or version of Qt you’re trying to download is unavailable. We just don’t have a good way to make it available all the time. This could cause CI build failures for a lot of people, and that’s probably very annoying.