error cloning package
With every package I tried to install I received the same error. I updated the mirrorlist with pacman-mirrors and reinstalled yay but the error persisted.
After googling a little and don’t find any solution I thought that the problem was related to Git as some packages are stored on Git repositories.
It turns out that Git is a dependency of yay but it isn’t installed by default. It also happens that installations from AUR are made through a fakeroot environment. So the solution was to install both packages before using yay.
$ sudo pacman -S git fakeroot
I hope it helps you If you get this error while trying to install packages from AUR.
Claim your page on DEV before someone else does
Level up every day