Skip to content
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

Failed to extract ZIP #10069

Closed
cafferata opened this issue Aug 20, 2021 · 1 comment · Fixed by #10076
Closed

Failed to extract ZIP #10069

cafferata opened this issue Aug 20, 2021 · 1 comment · Fixed by #10076
Labels
Milestone

Comments

@cafferata
Copy link
Contributor

cafferata commented Aug 20, 2021

Problem

When you upgrade the package simple-bus/symfony-bridge from 5.0.0 to 5.1.0, the error message below keeps appearing.

The SimpleBus/symfony-bridge@v5.0.0...v5.1.0 with possible cause SimpleBus/symfony-bridge@24e0207?

Reproducible case

Create an empty directory, and run both composer require commands.

composer require "simple-bus/symfony-bridge" "5.0.0"
composer require "simple-bus/symfony-bridge" "5.1.0"

My composer.json:

{
    "require": {
        "simple-bus/symfony-bridge": "5.0.0"
    }
}

Output of composer diagnose:

Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
require.simple-bus/symfony-bridge : exact version constraints (5.1.0) should be avoided if the package follows semantic versioning
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.1.6
PHP version: 7.4.22
PHP binary path: /usr/local/Cellar/php@7.4/7.4.22/bin/php
OpenSSL version: OpenSSL 1.1.1k  25 Mar 2021
cURL version: 7.78.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1k
zip: extension present, unzip present, 7-Zip not available

When I run this command:

composer require "simple-bus/symfony-bridge" "5.1.0"

I get the following output:

./composer.json has been updated
Running composer update simple-bus/symfony-bridge
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
  - Upgrading simple-bus/symfony-bridge (v5.0.0 => v5.1.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downloading simple-bus/symfony-bridge (v5.1.0)
  - Removing simple-bus/symfony-bridge (v5.0.0)
  - Installing simple-bus/symfony-bridge (v5.1.0): Extracting archive
    Failed to extract simple-bus/symfony-bridge: (9) '/usr/bin/unzip' -qq '/Users/jeffrey/Desktop/simpelbus/vendor/composer/tmp-343255ca909adcfb0dec63be91cf225c' -d '/Users/jeffrey/Desktop/simpelbus/vendor/composer/689a843c'

unzip:  cannot find or open /Users/jeffrey/Desktop/simpelbus/vendor/composer/tmp-343255ca909adcfb0dec63be91cf225c.

    This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
    See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
Generating autoload files

And I expected this to happen:

./composer.json has been updated
Running composer update simple-bus/symfony-bridge
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 install, 1 updates, 0 removals
  - Downloading simple-bus/symfony-bridge (v5.1.0)
  - Removing simple-bus/symfony-bridge (v5.0.0)
  - Installing simple-bus/symfony-bridge (v5.1.0): Extracting archive
Generating autoload files
@aschempp
Copy link
Contributor

see #10076

@Seldaek Seldaek added this to the 2.1 milestone Aug 29, 2021
@Seldaek Seldaek added the Bug label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants