ddev pull
命令在配置为从Acquia环境中提取时失败。只有当前版本的ddev 1.21.3受到影响。1.21.1或1.19.5等旧版本不受影响。s
错误消息:
❯ ddev pull acquia --skip-files
You're about to delete the current database and replace with the results of a fresh pull.
Would you like to continue? [Y/n] (yes): yes
Authenticating...
Saved credentials
In AliasesDownloadCommand.php line 119:
Unknown Drush version
remote:aliases:download [--destination-dir DESTINATION-DIR] [--all] [--] [<applicationUuid>]
Pull failed: exit status 1
此错误已报告给Acquia,并在版本2.5.3的Acquia CLI中修复。
当前的ddev版本1.21.3与受该错误影响的Acquia CLI的早期版本2.5.1一起发布。在发布新的ddev版本之前——这将影响上游依赖的版本——有两种可能的解决方案:
-
一次性修复:手动更新到最新版本的Acquia CLI。
ddev exec acli self:update
-
连续的";出血边缘";更新。(
当ddev启动时,将Acquia CLI更新到最新版本。
在.ddev/config.yaml文件中添加以下行:
hooks: post-start: - exec "acli self:update"
注意:此选项可能会使您暴露在最新发布的Acquia CLI中的其他错误中。