簡體   English   中英

Composer將依賴項更新到較舊的版本

[英]Composer updates a dependency to an older version

我在項目中定期運行composer update ,然后檢查更新了哪些依賴項。 但是今天我注意到一個奇怪的輸出:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
  - Updating phpdocumentor/type-resolver (0.4.0 => 0.3.0): Downloading (100%)
  - Updating phpdocumentor/reflection-docblock (3.2.0 => 3.2.1): Downloading (100%)
Writing lock file

您可以看到phpdocumentor / type-resolver軟件包已從0.4.0降級到0.3.0,盡管該命令是update 這是正常現象還是漏洞或其他原因?

看來我找到了答案。 它是在此提交中:將phpdocumentor / type-resolver降級到0.3

In order to restore a bc break made in 3.2.0 I downgraded the type-resolver. This makes the version less compatible with php 7.1 But will help our users to upgrade.

的確,phpdocumentor / type-resolver是phpdocumentor / reflection-docblock的依賴項,其維護者故意降級了type-resolver。 所以一切正常。 這不是作曲家的錯誤。 這只是我第一次看到這樣的行為,這就是為什么我發現它很奇怪。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM