symfony / polyfill

PHP polyfills

Home Page:https://symfony.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

symfony/polyfill-mbstring can no longer be installed (as of today)

Bilge opened this issue · comments

commented

This happens on Ubuntu CI but I can also reproduce it on Windows locally if I clear Composer caches.

  - Installing symfony/polyfill-mbstring (v1.25.0): Extracting archive

...

    Failed to extract symfony/polyfill-mbstring: (9) '/usr/bin/unzip' -qq '/home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1' -d '/home/vsts/work/1/s/vendor/composer/dd822d03'

[/home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1 or
        /home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1.zip, and cannot find /home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1.ZIP, period.

    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
    Install of symfony/polyfill-mbstring failed

In ZipDownloader.php line 209:
                                                                               
  '/home/vsts/work/1/s/vendor/composer/tmp-eb1a103d57979791875398d4c26acab1'   
  is not a zip archive.                                                        

The lockfile that causes this error is this one. Frustratingly, the error is intermittent, however it occurs often, though not always.

This looks like an issue on GitHub. We can't do anything about it I fear.
We just released v1.26.0 hoping that the new ZIPs won't be corrupted.
Try composer up symfony/polyfill-* 🤞

Is there a way to fix the corrupted one?
Would save me a lot of work going trough all the services and updating the dependency.

Maybe the github support can. That's a ZIP file provided by github

Contacting GitHub support and hoping they figure out the issue? Nothing we're in control of unfortunately.

Hello, I had the same issue, it's now fixed

I had the same issue. I avoided it as follows.

composer.json

{
    "config": {
        "preferred-install": {
            "symfony/polyfill-*": "source",
            "*": "dist"
        },
    },
}

Let's close the issue then. We can't do anything on our side and apparently it has been fixed by GitHub already.