-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Composer\Package\Archiver\ArchiveManager bug generating ZIP file #10126
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
Composer\Package\Archiver\ArchiveManager bug generating ZIP file #10126
Comments
Seems related to #10099 - could you try to see if changing ZipArchiver line 33 from
fixes it? Just adding the realpath there. |
I also have this issue with Satis and I tried the fix above, to no avail -- still getting every file prefixed with "private." |
Closing as no feedback.. |
@Seldaek, I can confirm this fixes the issue for me on MacOS. The underlying culprit is I would open a PR, but my guess is this needs to be fixed in more places than the |
@jasonmccreary feel free to PR this fix, but tbh I have no interest in debugging this further given satis has been replaced by https://packagist.com as far as I'm concerned (including your use case which if I understood correctly is selling packages? https://packagist.com/vendors), and running it on MacOS is anyway kinda fringe.. |
@Seldaek, I understand. I did look at paid Packagist, but this is kind of a new venture for me and it doesn't generate revenue yet. If it does, I'm glad to consider switching. Just need to understand pricing better (as sliders don't change anything for me) |
I'm running SATIS, on MACOS.
All the files in the zip created have "private" prefix (private.gitignore, privatecomposer.json, privatesrc).
I found inside Composer\Package\Archiver
So $localname will have "private" prefix
$sources is valued in Composer\Package\Archiver\ArchiveManager so I changed like this
I don't know if this a problem of sys_get_temp_dir or SplFileInfo
Sorry for my very bad english
The text was updated successfully, but these errors were encountered: