go/src/gopkg.in/couchbase/gocb.v1/bucket.go:206:21: b.client.CbasEps undefined (type *gocbcore.Agent has no field or method CbasEps)
go/src/gopkg.in/couchbase/gocb.v1/cluster.go:89:3: unknown field ‘UseZombieLogger’ in struct literal of type gocbcore.AgentConfig
go/src/gopkg.in/couchbase/gocb.v1/cluster_analyticsquery.go:502:37: selectedB.client.ClientId undefined (type *gocbcore.Agent has no field or method ClientId)
go/src/gopkg.in/couchbase/gocb.v1/error.go:109:18: undefined: gocbcore.ErrNonZeroCas
go/src/gopkg.in/couchbase/gocb.v1/logging.go:43:2: undefined: gocbcore.SetLogRedactionLevel
go/src/gopkg.in/couchbase/gocb.v1/logging.go:43:32: undefined: gocbcore.LogRedactLevel
go/src/gopkg.in/couchbase/gocb.v1/logging.go:113:2: undefined: gocbcore.SetLogRedactionLevel
go/src/gopkg.in/couchbase/gocb.v1/logging.go:113:32: undefined: gocbcore.LogRedactLevel
Note that go get github.com/couchbase/gocb works fine on the same box, but that is now called the “developer version”, with the other path called “lastest stable release”. Also, the gocb link doesn’t work for Linux or Windows (I am told by other team members). We would like to standardize around the “latest stable release” library.
Hi @bhouse1273 I’m trying to work out what’s going wrong here. I’ve just tried running on a fresh centos 7 box to ensure that my environment isn’t influencing anything. It seems to work ok for me:
It also worked when not in go modules mode. Could you try again after ensuring that everything is clean, the issue looks like it can’t find a load of gocbcore bits. Maybe there’s an old version of gocbcore lurking somewhere?
You’re also correct about github.com/couchbase/gocb being not stable yet. That’s the alpha version of our upcoming 2.0 release.
I was able to go get gopkg.in/couchbase/gocb.v1 after the go mod init test. Then I was able to add that as an import in my .go file. However, when I try to compile, I get
../../../gopkg.in/couchbase/gocb.v1/bucket.go:206:21: b.client.CbasEps undefined (type *gocbcore.Agent has no field or method CbasEps)
../../../gopkg.in/couchbase/gocb.v1/cluster.go:89:3: unknown field 'UseZombieLogger' in struct literal of type gocbcore.AgentConfig
../../../gopkg.in/couchbase/gocb.v1/cluster_analyticsquery.go:502:37: selectedB.client.ClientId undefined (type *gocbcore.Agent has no field or method ClientId)
../../../gopkg.in/couchbase/gocb.v1/error.go:109:18: undefined: gocbcore.ErrNonZeroCas
../../../gopkg.in/couchbase/gocb.v1/logging.go:43:2: undefined: gocbcore.SetLogRedactionLevel
../../../gopkg.in/couchbase/gocb.v1/logging.go:43:32: undefined: gocbcore.LogRedactLevel
../../../gopkg.in/couchbase/gocb.v1/logging.go:113:2: undefined: gocbcore.SetLogRedactionLevel
../../../gopkg.in/couchbase/gocb.v1/logging.go:113:32: undefined: gocbcore.LogRedactLevel
You are probably right about an out-dated gocbcore lurking. I’ll try to manually delete the CB SDK and reinstall.