Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
-
SDK08: SDK3.5, 0xD, FtrNA, PS
Description
Issue raised via discord:
~/go/pkg/mod/github.com/couchbase/gocb/v2@v2.7.0/search/internal.go:31:62: cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in argument to fmt.Errorf (overflows)
Yes, compiling on Linux x64. I've been playing around with the Grafana plugin https://github.com/couchbaselabs/grafana-plugin and was updating it to the latest Couchbase and Grafana plugin SDKs, when I ran into the error. I can make a branch with it to reproduce.
It is an odd error. I don't see why that code would be problematic.
You can reproduce on this branch: https://github.com/jeffdgr8/grafana-plugin/tree/gocb-2.7.0 by running run.sh.
Requires investigation. Fix is probably really simple but we need to understand what's going on here, I think it might be something to do with go arch version.