Upgrading packaged on arch using yay (to build google-chrome as example) may fail due to missing permissions to folder or not being able to find files in there it self.
Test case:
#!/bin/sh
export projRoot=$HOME/TestError/
export projDest=$HOME/TestError/dest/
mkdir -p $projRoot/
mkdir -p $projRoot/src/
mkdir -p $projRoot/dest/
cd $projRoot
touch test.sh
ln -fs /opt/FakeDestination "$projDest"test.sh # Fake destination
# Permissions
chmod +x test.sh
cd $projRoot/src/
ln -sf $projRoot/test.sh test.sh
install "$projRoot"test.sh "$projDest"test.sh