What means “locked at” in composer

后端 未结 1 1554
暗喜
暗喜 2021-01-15 03:48

Trying to perform a composer update but getting the following error:

The requested package (locked at &l

相关标签:
1条回答
  • 2021-01-15 04:29

    The package is locked means the commit-hash of the last commit on the branch used with version-constraint dev-<branch> was saved during the last run of composer update in the lock-file to ensure deterministic (reproducible) builds upon deployment.

    This commit-hash or tag is written to your lock-file (composer.lock) if you:

    1. run composer update [<package>]

    ... or ...

    1. run composer install with a composer.json present but not a lock-file in composer's current directory which does auto-generate the lock-file
    0 讨论(0)
提交回复
热议问题