1 回答

TA貢獻1834條經驗 獲得超8個贊
這個問題是在golang-nuts討論后發現的。只是在下面再次引用它:-
我的猜測是因為 Mac 文件系統保留大小寫但不區分大小寫,這意味著在 mac os 中“floRest”和“florest”是同一個文件/目錄,而在 linux 上它們是 2 個不同的文件。(您也可以將 mac 文件系統配置為區分大小寫,但這不是默認設置)。
正如您在日志中看到的:
mv $WORK/github.com/jabong/floRest/src/examples.a /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/floRest/src/examples.a
mkdir -p /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/florest/src/
cp $WORK/github.com/jabong/florest/src/examples.a /Users/debraj/golang/pkg/darwin_amd64/github.com/jabong/florest/src/examples.a
去安裝github.com/jabong/florest/src/examples:打開/var/folders/lp/3q9_2mn51hd9s4yj_jcf3jxm0000gp/T/go-build665863426/github.com/jabong/florest/src/examples.a:沒有這樣的文件或目錄
文件“floRest/src/examples.a”被移動,然后嘗試復制“florest/src/examples.a”,這是mac os上的同一個文件,它不再存在。
為了克隆我使用的 repo:-
git clone https://github.com/jabong/florest/
因此,在 mac 中,我的代碼在目錄中簽出florest
。但是實際的倉庫名稱是https://github.com/jabong/floRest/
并且在代碼中它被引用為floRest
導致問題的原因。
- 1 回答
- 0 關注
- 265 瀏覽
添加回答
舉報