Sharktheone / arch-mojo

Install Mojo on Arch
90 stars 9 forks source link

mojo-libs ==> ERROR: One or more files did not pass the validity check! #26

Open nevdelap opened 1 month ago

nevdelap commented 1 month ago

I've just tried to update and then tried removing and installing and had this happening. Manjaro with everything up-to-date. Had always been working just fine previously.

17:17:57 zen ~ paru -Sy --noconfirm mojo
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (4) mojo-libs-0.1-3  modular-0.9.2-2  mojo-git-24.4-2  mojo-0.0.1-1

:: Proceed to review? [Y/n]:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
fetching devel info...
==> Making package: mojo-libs 0.1-3 (Wed 04 Sep 2024 17:18:31)
==> Retrieving sources...
  -> Found install_libs.py
==> Validating source files with sha256sums...
    install_libs.py ... FAILED
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'mojo-libs-0.1-3':
error: can't build modular-0.9.2-2, deps not satisfied: mojo-libs
error: can't build mojo-git-24.4-2, deps not satisfied: modular  mojo-libs
error: can't build mojo-0.0.1-1, deps not satisfied: modular  mojo-git
error: packages failed to build: mojo-libs-0.1-3  modular-0.9.2-2  mojo-git-24.4-2  mojo-0.0.1-1
17:18:31 zen ~ 1

Please let me know if there is anything I can add to help diagnose the problem.

nevdelap commented 1 month ago

This matches the PKGBUILD.

17:25:08 zen ~ cd /tmp
17:25:17 zen /tmp wget https://raw.githubusercontent.com/Sharktheone/arch-mojo/676397111f633adab2580c87d4b031d7282541c7/src/install_libs.py
--2024-09-04 17:25:19--  https://raw.githubusercontent.com/Sharktheone/arch-mojo/676397111f633adab2580c87d4b031d7282541c7/src/install_libs.py
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8002::154, 2606:50c0:8003::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6287 (6.1K) [text/plain]
Saving to: ‘install_libs.py’

install_libs.py                                       100%[======================================================================================================================>]   6.14K  --.-KB/s    in 0s

2024-09-04 17:25:25 (38.3 MB/s) - ‘install_libs.py’ saved [6287/6287]

17:25:25 zen /tmp shasum -a 256 install_libs.py
bed33dcf5cc71021ab39d62fe5f2c7e9f880035de57f9de5583a46c5ec87cfed  install_libs.py
17:25:35 zen /tmp
Sharktheone commented 1 month ago

Yeah I don't really understand why that happens, but you can fix it by deleting the old cache directory in ~/.cache/yay/ or I think a clean build should also work.

Now when I think about it again, it might be the fact that it always downloads install_libs.py and it sees that it has the same file, even if it is not the same url, I thought yay way smarter 😅 Maybe I need to let it download the file with a suffix of try to delete the file before upgrading / installing