composer.lock文件中的null引用的含义是什么



据我所知,Composer将其安装的确切版本的列表写入composer.lock文件。

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

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

什么时候发生的?这意味着什么?

感谢

通过搜索要粘贴的示例来回答@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包的存储库,没有任何可引用的提交。

最新更新