-
Notifications
You must be signed in to change notification settings - Fork 754
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
support symlinks #93
Comments
I don't quite understand the problem 🤔 Could you elaborate a little more on what the expected behavior should be? Looking at your run, the two files The time that you see is the sum of all the calls to upload the individual files. |
libclang-cpp.so is a symlink to libclang-cpp.so.11git as usual. |
I am running into this too. Is any ETA available, please? |
As far as I can see, this is because of Line 16 in ee69f02
Would you accept a small PR to provide a follow-symlinks opt-out as a boolean input, as recommended by https://www.npmjs.com/package/@actions/glob#recommended-action-inputs ? |
This commit implements a new boolean input to the action, `follow-symlinks`. This option configures whether the glob expansion will follow any symlinks it finds when determining the set of of files to be archived into the artifact. The default value of the option, which preserves the existing behaviour, is `true`. When set to true, symbolic links will be be followed and expanded If `false`, symbolic links will be included in the archived artifact verbatim. Users may wish to set this option to false if their artifact contains internally-referencing symlinks which would result in significant bloat (and semantic change!) in the source files when the artifact is created. Resolves: actions#93.
Looks like GH is not accepting symlinks. Lets give this a try. actions/upload-artifact#93 Signed-off-by: Beraldo Leal <[email protected]>
Looks like GH is not accepting symlinks. Lets give this a try. actions/upload-artifact#93 Signed-off-by: Beraldo Leal <[email protected]>
Ok, it urgent call for the MTI |
I'm not sure it's the same problem but I am finding in Can someone confirm that this is the same or a similar issue in this case, please? |
@shakfu your stated scenario is the same issue. |
I've just come across this issue trying to use this action. |
I find this occurs when I use |
This happened to us on nextjs project / next bin path which is a symlink from .bin. By the time build makes it to azure linux appservice, the app can't spin up its container correctly / can't find module because symlink is missing. Background: https://azureossd.github.io/2022/10/18/NextJS-deployment-on-App-Service-Linux/#note-about-symlinks-why-next-start-may-fail-in-certain-deployment-scenarios -- We fixed by putting full path in app startup cmd on appservice. Other way is full path in package.json (instead of just: yarn start or next start) |
It turns out that upload-artifacts strips broken symlinks: actions/upload-artifact#93, so our approach of generating a broken symlink that gets linked when it gets to gh-pages doesn't work. We can work around this by using tarring the output before uploading the artifacts, but it turns out that the "pages build and deployment" action doesn't support broken symlinks either, because it uses `--dereference` in its tar command: <img width="680" alt="image" src="https://github.com/WATonomous/infra-config/assets/5977478/c78c2152-f989-4dbc-84c2-daf9e4a89347"> The new strategy in this PR is to set up the symlinks only on master and only in CI.
In #508 the lack of symlink support seems to break MacOS code signatures/notarization. Using |
I have opened up a PR to fix this #544 |
Why not support this as an opt-in? Is there a reason on github's side? |
* Update README * use actions/setup-python for Windows as well * Remove unnecessary end of options for yarn commands * Use custom upload-artifact to fix uploading macOS builds without needing to double ZIP artifacts to preserve symlinks (actions/upload-artifact#93) Signed-off-by: eXhumer <[email protected]>
If anyone wants to use preserve links instead of following them in artifacts during upload, you can use I currently use it to build my macOS application package ZIP and it no longer breaks the application without needing to pre-ZIP before using |
I have this issue as well. |
Typical native Linux builds contain a lot of symlinks. That inflates the upload times and massively increases the artifact sizes.
Version
Environment
Run/Repo Url
https://github.com/Trass3r/llvm-project/runs/849655143
The text was updated successfully, but these errors were encountered: