My other packages from AUR upgraded fine so not an issue with yay or AUR overall.
When trying my usual upgrade with no clean builds on any packages I got dozens and dozens of errors of being unable to delete files like this.
rm: cannot remove '/home/me/.cache/yay/mullvad-vpn/src/gopath/pkg/mod/golang.org/x/tools@v0.0.0-20180917221912-90fa682c2a6e/playground/socket/socket.go': Permission denied
rm: cannot remove '/home/me/.cache/yay/mullvad-vpn/src/gopath/pkg/mod/golang.org/x/tools@v0.0.0-20180917221912-90fa682c2a6e/playground/local.go': Permission denied
rm: cannot remove '/home/me/.cache/yay/mullvad-vpn/src/gopath/pkg/mod/golang.org/x/tools@v0.0.0-20180917221912-90fa682c2a6e/playground/appengine.go': Permission denied
I checked the AUR page for the package and although no posts of similar errors there is a post at top saying to always do a clean build in capital letters.
Running with clean build I get this.
$ yay -Syu
...
:: 1 Packages to upgrade.
1 aur/mullvad-vpn 2022.2-2 -> 2022.4-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==>
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] mullvad-vpn-2022.4-1
1 mullvad-vpn (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> a
:: Deleting (1/1): /home/me/.cache/yay/mullvad-vpn
unlinkat /home/me/.cache/yay/mullvad-vpn/src/gopath/pkg/mod/github.com/lxn/win@v0.0.0-20210218163916-a377121e959e/edit.go: permission denied
:: (0/1) Downloaded PKGBUILD: mullvad-vpn
-> error fetching mullvad-vpn: fatal: destination path 'mullvad-vpn' already exists and is not an empty directory.
context: exit status 128
I thought I’d try removing it with yay -R mullvad-vpn
and reinstall but i get
1 mullvad-vpn (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (0/1) Downloaded PKGBUILD: mullvad-vpn
-> error fetching mullvad-vpn: fatal: destination path 'mullvad-vpn' already exists and is not an empty directory.
context: exit status 128
Should I just forcefully delete the #/.cache/yay/mullvad-vpn directory and try again? Or other suggestions of what’s not working? Seems weird the directory should have odd permissions.