我在 Windows 8.1 64 位上使用 go 1.5.1。我沒有GO15VENDOREXPERIMENT在我的環(huán)境中設(shè)置。我安裝了最新版本的 git 和 bazaar。我正在嘗試獲取gomniauth包裹:go get github.com/stretchr/gomniauth即使該過程在沒有任何錯誤的情況下完成,也沒有引入許多依賴項。例如,在編譯我的應(yīng)用程序(取決于 gomniauth)時,我收到以下錯誤:..\github.com\stretchr\codecs\xml\simple_xml_codec.go:5:2: cannot find package "github.com/clbanning/x2j" in any of: C:\Go\src\github.com\clbanning\x2j (from $GOROOT) C:\work\src\github.com\clbanning\x2j (from $GOPATH)..\github.com\stretchr\codecs\msgpack\msgpack_codec.go:6:2: cannot find package "github.com/ugorji/go/codec" in any of: C:\Go\src\github.com\ugorji\go\codec (from $GOROOT) C:\work\src\github.com\ugorji\go\codec (from $GOPATH)..\github.com\stretchr\codecs\bson\bson_codec.go:5:2: cannot find package "labix.org/v2/mgo/bson" in any of: C:\Go\src\labix.org\v2\mgo\bson (from $GOROOT) C:\work\src\labix.org\v2\mgo\bson (from $GOPATH)它似乎引入了 的直接依賴項gomniauth,但沒有引入依賴項的依賴項。我已經(jīng)和刪除stretchr從我的文件夾GOPATH/src以及GOPATH/pkg,但運行后go get很多次,但還是沒有超過第二級別的任何依賴拉動。我 100% 確信我的終端沒有網(wǎng)絡(luò)問題。我可以使用瀏覽器或 curl 訪問那些 github 存儲庫。
2 回答

ibeautiful
TA貢獻1993條經(jīng)驗 獲得超6個贊
將目錄更改為您的項目,然后嘗試go get ./...
例如:
cd C:\work\src\github.com\stretchr\gomniauth go get ./...
或者只是go get github.com/stretchr/gomniauth/...
作為阿米特·庫馬爾·古普塔建議
- 2 回答
- 0 關(guān)注
- 190 瀏覽
添加回答
舉報
0/150
提交
取消