Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions/cache/save can not handle circular symbolic links in saved paths (ELOOP: too many symbolic links encountered) #1460

Open
defanator opened this issue Sep 7, 2024 · 0 comments

Comments

@defanator
Copy link

The actions/cache/save@v4 action fails to create cache archive if there are "dead" circular symbolic links inside. The following error shows up in the output:

Warning: ELOOP: too many symbolic links encountered, stat '/home/runner/work/amneziawg-openwrt/amneziawg-openwrt/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib/lib'
Warning: Cache save failed.

Problematic links:

$ find . -follow -printf ""
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/mips-openwrt-linux-musl/lib/lib’: Too many levels of symbolic links
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib64/lib’: Too many levels of symbolic links
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib/lib’: Too many levels of symbolic links
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib64/lib’: Too many levels of symbolic links
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib32/lib’: Too many levels of symbolic links
find: ‘./staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/lib/lib’: Too many levels of symbolic links

All these are circular symlinks, e.g.:

lrwxrwxrwx 1 runner docker    3 Sep  7 19:56 lib -> lib
lrwxrwxrwx 1 runner docker 3 Sep  7 19:56 staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib/lib -> lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant