composer.lock文件中的空引用是什么意思? [英] What is the meaning of a null reference in composer.lock file?

查看:126
本文介绍了composer.lock文件中的空引用是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

As far as I understand, Composer writes the list of the exact versions it installed into the composer.lock file.

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

The package reference attribute is used to store a specific commit number.

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

In some circumstances I see null values for reference attribute in my composer.lock file.

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

When does it happen? And what does it mean?

谢谢

推荐答案

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

By searching an example to paste to respond to @xabbuh's question I noticed that the null reference is always related to a "type": "zip" package, like shown below:

"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包的存储库,没有任何提交要引用.

So I guess that the answer to my question is that being the repository bound to a zip package there isn't any commit to refer to.

这篇关于composer.lock文件中的空引用是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆