Tries to access zstd inside /root/.local directory for some reason
I am using actions/cache@v4 and every time it tries to store cache or restore, it logs these errors:
Unexpected error attempting to determine if executable file exists '/root/.local/bin/zstd': Error: EACCES: permission denied, stat '/root/.local/bin/zstd' Unexpected error attempting to determine if executable file exists '/root/bin/zstd': Error: EACCES: permission denied, stat '/root/bin/zstd'
zstd is present in /usr/bin directory and PATH is also correct.
same thing happens for us:
Unexpected error attempting to determine if executable file exists '/usr/local/bin/aws/zstd': Error: ENOTDIR: not a directory, stat '/usr/local/bin/aws/zstd'
file is present in /usr/bin/zstd
I noticed /usr/local/bin/aws
is the last path from the $PATH env var:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/usr/local/go/bin:/home/runner/.cargo/bin:/usr/local/go/bin:/home/runner/.cargo/bin:/usr/local/bin/aws`