当我运行 composer install --prefer-source
或尝试更新这个特定的束 (其它正常工作的束) 时,我会收到以下错误:
Failed to download some-bundle from source: Failed to execute git checkout 'xx' -- && git reset --hard 'xx' --
error: The following untracked working tree files would be overwritten by checkout:
...
[ list of all files in repo on a branch that interests me ]
...
Please move or remove them before you can switch branches.
Aborting
我猜测我在捆绑存储库上搞错了什么,但不知道具体是什么。
- 我克隆了全新的项目存储库
- 我尝试使用"composer install --prefer source",但仍然出现错误。
有趣的是 - 这个错误只在MAC上的docker中发生。在其他安装了linux的电脑上,它可以正常工作。