I'm trying to install mgo which is a mongo-driver written in golang.
The standard command:
go get launchpad.net/mgo
But it failed because of some cert issues.
So I manually download the sources of mgo to local E:\mgo
, but I don't know to how install it.
The file tree:
├─.bzr
│ ├─branch
│ │ └─lock
│ ├─branch-lock
│ ├─checkout
│ │ └─lock
│ └─repository
│ ├─indices
│ ├─lock
│ ├─obsolete_packs
│ ├─packs
│ └─upload
├─bson
└─testdb
I tried:
cd mgo
go install
It reports:
auth.go:34:2: import "launchpad.net/mgo/bson": cannot find package
But if I try to install bson first:
cd bson
go install
It reports another error:
go install: no install location for _/E_/mgo/bson
So, what's the correct command to install it?