如何让作曲家使用精确的SHA1值?

Bet*_*ide 14 git composer-php

我想通过指定提交的SHA1来确保composer正在使用git存储库的确切版本.我怎样才能做到这一点?

我尝试将sha1代码放入版本字符串中,但这不起作用:

 [UnexpectedValueException]                                                   
 Could not parse version constraint a93cbe224a6922f181f55c7a35bde0cf61a6a5a4  
Run Code Online (Sandbox Code Playgroud)

Sel*_*aek 32

您可以在版本之后指定它(假设您想要主分支): "dev-master#a93cbe224"

阅读有关作曲家文档中的要求的更多信息