Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1582

Cannot use math.MaxUint32 (untyped int constant 4294967295) as int value in argument to fmt.Errorf (overflows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            charles.dixon Charles Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty