當我運行composer install --prefer-source
或嘗試更新這一個特定束(他人相處融洽)我得到這個錯誤:作曲家安裝--prefer源拋出錯誤
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
我假設我就搞砸了什麼捆綁存儲庫,但不知道是什麼。
- 我克隆全新的項目庫
- 我試試「作曲家安裝--prefer來源」,並仍然得到這個錯誤。
有趣的是 - 錯誤只發生在MAC上的docker上。在其他與Linux的電腦它工作正常。
什麼版本的作曲家?其他人報告了相同的問題,並且作曲家的更新將其排除。值得一試? 「對於遇到這個問題的其他人嘗試更新作曲家--prefer-dist」。其他建議在GIT Bash中運行,而不是CMD(Windows)。 – Robbie
作曲家版本1.2.1 2016-09-12 11:27:19。 --prefer-dist無法正常工作 - 我無法直接從供應商處發送更改。但我認爲這只是MAC上的問題。 – mmmm
解決方案是永遠不會*在供應商文件夾內進行修改。這與作曲家,供應商文件夾以及一般適當的開發實踐的整個方面直接相反。 – Sammitch