If you're getting 'connection refused' errors, similar to @trougnouf, it's likely a DNS resolution issue. 'Go' queries /etc/resolv.conf directly. You may need to create a symbolic link if using iwd or another tool that uses systemd-resolved. See https://wiki.archlinux.org/title/Systemd-resolved#DNS
# sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
Not sure why building in a clean chroot would help... but it shouldn't be necessary!
Pinned Comments
jguer commented on 2024-03-16 08:06 (UTC)
This will happen if you upgrade pacman and yay separately If you have this error you need to manually recompile yay
jguer commented on 2019-04-16 14:08 (UTC)
I cannot delete the spam comments appearing regularly in this page, which has also led me to disable notifications from here. I remind that the best way to receive support or report a problem is through the Upstream URL.