-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Can't follow symlinks: ENOENT: no such file or directory, lstat 'filename' #130
Comments
Meanwhile, if that's not trivial to solve, I can run something like this: for f in ${{ env.PKGDEST }}/*; do
if [ -L "$f" ]; then
rp=$(realpath "$f")
unlink "$f"
cp "$rp" "$f"
fi
done To get rid of the symbolic links |
@ranisalt I think it's linked to permissions issues on these files and your whole workflow where you tamper the GitHub Runner with your |
@crazy-max this action runs as root, it should not have any permission issues, but I will try that nevertheless |
No luck. Still the same problem, even with all files owned by root (id -u and id -g) https://github.com/ranisalt/rsaur/runs/1627374177 |
should be:
|
The action already runs as superuser. It is clear that the owner and group have been updated. |
I've just bumped into this issue after encountering the same problem. Symlinks do indeed work on gh-pages and can be quite useful (e.g to create an The PR referenced above is trying to get a bunch of automatically generated symlinks pushed to gh-pages for this exact use case. Such a workflow was used successfully on Travis until we had to migrate to Github Actions. I'll try fiddling with file ownership as suggeted above to see if I can get it working. Meanwhile any suggestions about how to address this issue would be appreciated! |
@jlstevens there are no issues with the ownership, it changes nothing. You have to replace links with the actual files instead. To me it was easy, I just use |
Yes we can use symlinks on GitHub Pages but in some cases link target is not available or is based on an absolute path which cannot be resolved on the target branch.
Thanks for pointing this out. I think we could mitigate this behavior here. I will take a look and keep you in touch. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Behaviour
Steps to reproduce this issue
build_dir
ln -s ./filename.tar.gz ./filename
insidebuild_dir
)Expected behaviour
It should publish the symlinks (though I think GH pages does not support it) or copy the destination file/dir over the symlink before publishing.
Actual behaviour
I have two of such files, they all fail:
I ran
ls -Ahl <build_dir>
after generating such files, and it outputs the following:Configuration
Those are the exact commit and build that fail.
action .yml config here
Logs
log.txt
Beware that the log is very long.
The text was updated successfully, but these errors were encountered: