据我所知,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包的存储库,没有任何可引用的提交。