【问题标题】:What is the meaning of a null reference in composer.lock file?composer.lock 文件中的空引用是什么意思?
【发布时间】:2023-03-25 08:32:01
【问题描述】:

据我了解,Composer 会将其安装的确切版本列表写入composer.lock 文件中。

reference属性用于存储特定的提交号。

在某些情况下,我在composer.lock 文件中看到reference 属性的null 值。

什么时候发生?又是什么意思?

谢谢

【问题讨论】:

  • 你能举出这样的例子吗?

标签: json composer-php dependency-management


【解决方案1】:

通过搜索粘贴示例以回复@xabbuh 的问题,我注意到空引用始终与"type": "zip" 包相关,如下所示:

"dist": {
    "type": "zip",
    "url": "https://repo.magento.com/archives/magento/module-catalog-widget/magento-module-catalog-widget-100.0.5.0.zip",
    "~~,
    "shasum": "9824758cc690316a64727f823d33d752c9218c32"
},

所以我想我的问题的答案是作为绑定到 zip 包的存储库,没有任何提交可以参考。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-25
    相关资源
    最近更新 更多