在這里交叉。
我add編輯了一個包,然后dev編輯它,然后在編輯它之前將其洗掉free。現在我收到一個我無法修復的錯誤。我洗掉了 registries 目錄并下載了 julia 1.7 并重新開始(對于新檔案Manifest和Project檔案),但出現以下錯誤:
(@v1.7) pkg> add https://github.com/jacob-roth/PowerDynamics.jl.git
Cloning git-repo `https://github.com/jacob-roth/PowerDynamics.jl.git`
ERROR: failed to clone from https://github.com/jacob-roth/PowerDynamics.jl.git, error: GitError(Code:ERROR, Class:OS, could not remove directory /Users/myuser/.julia/clones/231828409692979274/refs/remotes/origin/compathelper/new_version/2020-08-01-00-06-19-852-2271493462': parent is not directory: Not a directory)
克隆/Users/myuser/.julia/clones/231828409692979274/不存在。我能做什么?我試過rming 包PowerDynamics,下載新版本的 julia 并重試,還洗掉了整個.julia/目錄,但我仍然遇到相同的錯誤。
uj5u.com熱心網友回復:
https://github.com/jacob-roth/PowerDynamics.jl.git上的存盤庫(無論是無意還是故意)對 macOS 和 Windows 用戶不友好:那里有一個名為 的分支CompatHelper,然后是一系列名為 的三個分支。您可以通過轉到此 URL在 GitHub 視圖中查看這些內容。compathelper/new_version/date
在 Linux 或 Unix 機器上,CompatHelper與compathelper. 因此,可以在檔案系統的同一位置創建名為的檔案CompatHelper和名為的目錄compathelper。但是,在你的MacOS系統中的默認設定,它是不是能夠做到這一點。Git 認為它應該自動發生,因此可以正常作業,但事實并非如此,這導致您git clone失敗。
這個特定的 Git 錯誤可能最終會得到修復,但現在,將存盤庫克隆到區分大小寫的檔案系統中。您可以在 macOS 系統上輕松創建一個;在這里看到我的答案。這將避開大多數其他問題,盡管 macOS 仍然無法創建 Linux 可以創建的某些名稱。
uj5u.com熱心網友回復:
無法重現,但也許
>rm PowerDynamics
有助于。此外,PowerDynamics如果卡住,您可以手動從 Manifest.toml 和 Project.toml 中洗掉。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/373762.html
上一篇:無法將新的本地分支推送到遠程倉庫
