Do not create dangling symlink in Android SDK artifactbundle#537
Do not create dangling symlink in Android SDK artifactbundle#537marcprux wants to merge 1 commit intoswiftlang:mainfrom
Conversation
|
Have you tested building with this locally? |
No. TBH, I was hoping to get this in and then test the resulting .artifactbundle that gets produced… |
|
OK, let me test it locally, then we can get this in. No hurry, as the next patch release likely won't be till next month. |
|
Thanks for the quick fix. However, please note that there are multiple dangling symlinks:
Can you remove the others as well and have the script create them on demand? Since the script is no longer needed with SwiftPM's Swift Build backend, I'd like to avoid baking in assumptions that the script will be run (and then we can simply remove the script in 6.5 or 6.6 or whenever we end up removing the legacy build backend). |
Ahh, I thought only the absolute symlink was the issue. I agree that we should move that link creation over to the post-install script, but that will require a bit more careful work, since those dangling symlinks are currently being "filled in" by the post-install script. We will instead need to make the script perform the link creation instead.
I look forward to that future 😶 |
|
Oh, I think I remember now why we put it in: we added the other symlinks to this central one, then archiving the bundle failed or something if they were all pointing at a non-existent symlink, so I put this in as a place-holder. I will confirm that is the reason and let you know, but either way, we'll likely need to ship with all of them, or add all of them after installation. |
|
I'm building locally now without that last symlink, will let you know what I find. |
Fixes #535