Topics

Fresh Install and Mongo Driver

Trevor.Conn@...
 

Dell Customer Communication

Hi all – I’m getting the GO repos for EdgeX installed on my machine, in particular so I can look at the single repo Fede created. In the process, I need to install the dependent packages and I am having an issue with the core-domain-go repo because of the following dependency:

 

gopkg.in/mgo.v2/bson

 

The gopkg.in link isn’t even resolving anymore when I use glide so after some digging, I found that this is sourced in the following unmaintained project:

 

https://github.com/go-mgo/mgo

 

I thought I would just install this package but then I found that the owner merged in other dependencies from his mgo.v2-unstable branch, which I do not want.

 

C:\Users\Trevor_Conn\go\src\github.com\mgo>go install

auth.go:37:2: cannot find package "gopkg.in/mgo.v2-unstable/bson" in any of:

        C:\Go\src\gopkg.in\mgo.v2-unstable\bson (from $GOROOT)

        C:\Users\Trevor_Conn\go\src\gopkg.in\mgo.v2-unstable\bson (from $GOPATH)

auth.go:38:2: cannot find package "gopkg.in/mgo.v2-unstable/internal/scram" in any of:

        C:\Go\src\gopkg.in\mgo.v2-unstable\internal\scram (from $GOROOT)

        C:\Users\Trevor_Conn\go\src\gopkg.in\mgo.v2-unstable\internal\scram (from $GOPATH)

 

My question for the group is should we investigate an updated or new package for this requirement? There are several alternatives at the bottom of the old repo’s ReadMe, the closest being the following fork:

 

https://github.com/globalsign/mgo

 

Since my environment is brand new, I could work on this and see if it’s viable unless anyone has an alternate solution.

 

Trevor Conn

Solutions Architect, Solution Selling

Dell | DCSG

Trevor.Conn@...

Round Rock, TX USA

 

Fede Claramonte
 

Hi Trevor,

I can access the gopkg.in url and glide downloaded the package. Maybe there were some network issues. But anyway, we should investigate some of these alternatives to replace the package as nothing good can come from using an unmaintained package.

Regards,

Fede


On 23/01/18 17:29, Trevor.Conn@... wrote:

Dell Customer Communication

Hi all – I’m getting the GO repos for EdgeX installed on my machine, in particular so I can look at the single repo Fede created. In the process, I need to install the dependent packages and I am having an issue with the core-domain-go repo because of the following dependency:

 

gopkg.in/mgo.v2/bson

 

The gopkg.in link isn’t even resolving anymore when I use glide so after some digging, I found that this is sourced in the following unmaintained project:

 

https://github.com/go-mgo/mgo

 

I thought I would just install this package but then I found that the owner merged in other dependencies from his mgo.v2-unstable branch, which I do not want.

 

C:\Users\Trevor_Conn\go\src\github.com\mgo>go install

auth.go:37:2: cannot find package "gopkg.in/mgo.v2-unstable/bson" in any of:

        C:\Go\src\gopkg.in\mgo.v2-unstable\bson (from $GOROOT)

        C:\Users\Trevor_Conn\go\src\gopkg.in\mgo.v2-unstable\bson (from $GOPATH)

auth.go:38:2: cannot find package "gopkg.in/mgo.v2-unstable/internal/scram" in any of:

        C:\Go\src\gopkg.in\mgo.v2-unstable\internal\scram (from $GOROOT)

        C:\Users\Trevor_Conn\go\src\gopkg.in\mgo.v2-unstable\internal\scram (from $GOPATH)

 

My question for the group is should we investigate an updated or new package for this requirement? There are several alternatives at the bottom of the old repo’s ReadMe, the closest being the following fork:

 

https://github.com/globalsign/mgo

 

Since my environment is brand new, I could work on this and see if it’s viable unless anyone has an alternate solution.

 

Trevor Conn

Solutions Architect, Solution Selling

Dell | DCSG

Trevor.Conn@...

Round Rock, TX USA

 



_______________________________________________
EdgeX-GoLang mailing list
EdgeX-GoLang@...
https://lists.edgexfoundry.org/mailman/listinfo/edgex-golang