What is the meaning of a null reference in the composer.lock file?
As far as I understand, Composer writes a list of the exact versions it installed to a file composer.lock
.
The package attribute is reference
used to store a specific amount of commit.
In some cases, I see null
values ββfor an attribute reference
in the file composer.lock
.
When does this happen? And what does it mean?
thank
source to share
Looking through the example to insert for @xabbuh's answer, I noticed that a null reference is always associated with a package "type": "zip"
as 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"
},
So, I think the answer to my question is that, being a repository associated with a mailbox, no commit for the link exists.
source to share