【问题标题】:composer checksum verification fails for many packages许多包的作曲家校验和验证失败
【发布时间】:2017-08-08 14:06:04
【问题描述】:

一段时间以来,composer 偶尔会抱怨某些包的校验和验证失败。它会继续从源代码安装它们。

通常这不是问题,但我想知道是否发生了奇怪的事情。

例子:

- Installing doctrine/data-fixtures (v1.2.2): Downloading (100%) Failed to download doctrine/data-fixtures from dist: The checksum verification of the file failed (downloaded from https://api.github.com/repos/doctrine/data-fixtures/zipball/17fa5bfe6ff52e35cb3d9ec37c934a2f4bd1fa2e) Now trying to download from source

- Installing ocramius/proxy-manager (1.0.2): Downloading (100%) Failed to download ocramius/proxy-manager from dist: The checksum verification of the file failed (downloaded from https://api.github.com/repos/Ocramius/ProxyManager/zipball/57e9272ec0e8deccf09421596e0e2252df440e11) Now trying to download from source

- Installing doctrine/migrations (v1.5.0): Downloading (100%) Failed to download doctrine/migrations from dist: The checksum verification of the file failed (downloaded from https://api.github.com/repos/doctrine/migrations/zipball/c81147c0f2938a6566594455367e095150547f72) Now trying to download from source

- Installing doctrine/orm (v2.5.6): Downloading (100%) Failed to download doctrine/orm from dist: The checksum verification of the file failed (downloaded from https://api.github.com/repos/doctrine/doctrine2/zipball/e6c434196c8ef058239aaa0724b4aadb0107940b) Now trying to download from source

这是从我的本地机器上的一个 composer install 调用中获取的。然而,许多软件包安装得很好。

在我们的 Jenkins 服务器上,据我所知,所有包都会发生这种情况。

那里发生了什么?我们确实在我们的本地网络中运行了 SATIS 服务,但似乎 composer 抱怨来自原始包位置的 dist 文件。 SATIS 服务仅用于私人包裹。

谁能想象问题出在哪里?有没有人遇到过类似的问题?

谢谢!

【问题讨论】:

    标签: php composer-php satis


    【解决方案1】:

    尝试检查/更新作曲家版本并在此之后运行composer clear-cache

    【讨论】:

    • 今天更新作曲家:# composer.phar --version Composer version 1.5.0 2017-08-08 11:08:04 之前手动清除缓存,现在按照建议进行:# composer.phar clear-cache Cache directory does not exist (cache-vcs-dir): Clearing cache (cache-repo-dir): /root/.composer/cache/repo Clearing cache (cache-files-dir): /root/.composer/cache/files Clearing cache (cache-dir): /root/.composer/cache All caches cleared. 结果相同:-( 甚至相同的包都失败了。
    猜你喜欢
    • 1970-01-01
    • 2017-03-08
    • 1970-01-01
    • 1970-01-01
    • 2023-03-10
    • 1970-01-01
    • 2018-08-17
    • 2018-06-04
    • 2017-09-15
    相关资源
    最近更新 更多