-
-
Notificat
8000
ions
You must be signed in to change notification settings - Fork 4.6k
Failed to extract package with warning: stripped absolute path spec from #10099
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
Comments
The warnings: warning: stripped absolute path spec from /private/var/folders/21/gnrfrmtx7z72qv4j9cc7psvc0000gn/T/composer_archive613f6e6d68385/composer.lock This seems to indicate the archive contains the full absolute path from when it was created. So it may be a bug in the archive command, or it may be a bug in satis. I have no idea, but it'd be great if you can dig further and try to figure it out as this isn't really code I am familiar with and I don't have a ton of time atm to dig into this myself. |
@Seldaek Satis uses the archiver of Composer to build the 8000 archive, so the bug is more likely in Composer than in Satis. |
I've been looking at the archive command like a cow looking at a train. I'm not going to figure out what's going wrong there even if I wanted to. |
I can confirm this bug, see https://github.com/atk4/core/runs/3651286339?check_suite_focus=true CI is failing randomly in about 1 of 100 runs.
|
@jnaklaas can you try my fix suggestion in #10126 (comment) ? |
@Seldaek @ballet-mecanique @jnaklaas I solved this. The error happens when you build satis locally and deploy that. I deleted the |
the issue I reported in #10099 (comment) was using regular dist zip files from packagist.org/GH, but I haven't seen such issue for a long time, thus it was probably fixed in a composer or somewhere else, I am unsubscribing myself from this issue and it can be probably even closed |
I just recently had this issue only using MacOS, the way I fixed it was just building it on my server instead which was running Ubuntu. I believe this to be an issue specifically when building and uploading from MacOS, the command I ran to deploy this was |
I am having this issue when building locally on MacOS and deploying to a static satis server. I have a build process to create a private package, so ideally I wouldn't need to recreate this process on the live server to then generate the archives. I'm wondering if this issue could be revisited with a focus on building locally on MacOS or someone on the core team could point me in the right direction to help try some fixes. |
When requiring my latest composer packages (built with satis, see this issue), extracting fails. The package is unzipped, but all files are inside a nested subdirectory, instead of in the root of the package directory:
vendor/mypackage/var/folders/21/gnrfrmtx7z72qv4j9cc7psvc0000gn/T/composer_archive613f6e6d68385/
So the package is not properly installed and not available in the project. When I require an older version of the package, it unzips and installs as expected:
composer require myvendor/mypackage:1.1.6
.My
composer.json
:Output of
composer diagnose
:When I run this command:
composer install # or composer require myvendor/mypackage
I get the following output:
And I expected something similar to this to happen: this is the output from a downgrade to a previous version of my package, which still works:
The text was updated successfully, but these errors were encountered: