-
Notifications
You must be signed in to change notification settings - Fork 727
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 not upload a directory that is a symlink to a directory #92
Comments
Funnily enough; the code does detect that it's a directory, and even tells me how many files will be uploaded; to only later fail:
The fix seems like we should first resolve symlinks before checking with |
Same issue here: https://github.com/rpearce/robertwpearce.com/pull/68/checks?check_run_id=1109884668 @arianvp Is the workaround to have a directory inside the symlinked dir? Edit: Yes, that worked for me. |
See actions/upload-artifact#92 for more details
See actions/upload-artifact#92 for more details
See actions/upload-artifact#92 for more details
Just in case, another workaround (that works in my case) might be using glob pattern instead of the exact name for the directory. Given the orginal example, something like this:
In case the glob does match extra (irrelevant) directories, I wonder if you could use
|
I'm also running into this with Bazel, which symlinks - uses: actions/upload-artifact@v2
with:
name: archive
path: bazel-bin/archive.tar.gz
Bazel provides |
I can reproduce this same exact issue with a nix result folder symlink. - name: "Upload artifact to github"
uses: actions/upload-artifact@v2
with:
name: Test-driver screenshots
path: result/screen*
By the way, the result* fix didn't work for me. It does remove the error but the files don't get uploaded. |
Is this bug fixed? |
Is this bug fixed?
|
+1 on this issue. Failing out for a symlinked directory |
Running into this error ( https://github.com/quicksilver/Quicksilver/runs/5321405744?check_suite_focus=true
Trying to debug:
EDIT: Changing |
Note, workaround is to dereference the symlink with - run: nix-build XXX # produces `result` symlink
- run: echo "UPLOAD_PATH=$(readlink -f result)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v2
with:
name: XXX
path: ${{ env.UPLOAD_PATH }} |
Use GitHub-provided temp folder to work around actions/upload-artifact#92
Use GitHub-provided temp folder to work around actions/upload-artifact#92
Use GitHub-provided temp folder to work around actions/upload-artifact#92
Use GitHub-provided temp folder to work around actions/upload-artifact#92
Use GitHub-provided temp folder to work around actions/upload-artifact#92
actions/toolkit#1190 has been merged in but a new version of |
For anybody searching for an answer, this is huge problem for |
Describe the bug
The nix package manager drops a symlink to the build artifact in your local directory called
result
which linksto the content-adressed build-directory e.g.:
but uploading that directory fails using the following workflow:
However as a workaround, if you create a directory inside that symlink then it does work:
Version
Environment
Screenshots
If applicable, add screenshots to help explain your problem.
Run/Repo Url
https://github.com/minvws/nl-covid19-notification-app-community-website/runs/841910187?check_suite_focus=true
How to reproduce
If applicable, add information on how to reproduce the problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: