使用此命令在go中創建新模塊時遇到了問題:它成功創建了go.mod文件,但后來拋出此錯誤>它不允許我安裝任何go包!請幫助我解決此錯誤或如何解決它!go mod init <moduleName>go: RLock /storage/mySdCard/github.com/my-username/App/go.mod: function not implemented我運行了這個命令:go mod init myApp我得到的輸出:go: creating new go.mod: module myApp go: updating go.mod: Lock /storage/8D8B-150E/Go/src/github.com/my-username/App/go.mod: function not implemented
1 回答

慕妹3146593
TA貢獻1820條經驗 獲得超9個贊
該命令使用文件鎖定來確保在同時運行多個命令時以一致的狀態讀取文件。go
go.mod
go
您看到的錯誤表示包含文件 () 的文件系統不支持讀鎖定。(在大多數類Unix操作系統上,我們使用系統調用。RLock /storage/mySdCard/github.com/my-username/App/go.mod: function not implemented
go.mod
/storage/mySdCard
flock
如果您無法將文件系統配置為支持鎖定,并且您無法在支持鎖定的其他文件系統中工作,請在 https://golang.org/issue/new 提交問題,并在問題描述中提及問題#37461(密切相關)。
- 1 回答
- 0 關注
- 143 瀏覽
添加回答
舉報
0/150
提交
取消