Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-5089

repo:voltha-protos :: go.mod - grpc module dependency / upgrade

    XMLWordPrintable

    Details

    • Type: Task
    • Status: To Do (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Unknown
    • Labels:
      None
    • Story Points:
      0

      Description

      repo:voltha-protos depends on module google.golang.org/grpc

      https://gerrit.opencord.org/plugins/gitiles/voltha-protos/+/refs/tags/v5.4.6/go.mod#8

      module github.com/opencord/voltha-protos/v5
      
      go 1.16
      
      require (
          github.com/golang/protobuf v1.5.2
          google.golang.org/genproto v0.0.0-20220208230804-[snip]
          google.golang.org/grpc v1.44.0
      )

      'Package naming' was removed around v1.30

      • Package naming defines the naming API and related data structures for gRPC.
      • This package is deprecated: please use package resolver instead.

       

      Trying to install the latest version v1.56.2

      % make mod-update
      
      
       ** ---------------------------------------------------------------------------
       ** make ENTER: Target mod-tidy
       ** ---------------------------------------------------------------------------
      
      docker run --rm --user $(id -u):$(id -g) --interactive --tty -v {CWD}:/app -gocache:/.cache -v gocache-2.4.0:/go/pkg voltha/voltha-ci-tools:2.4.0-golang go mod tidy
      
      go: finding module for package google.golang.org/grpc/naming
      github.com/opencord/voltha-lib-go/v7/pkg/db/kvstore imports
              go.etcd.io/etcd/clientv3 tested by
              go.etcd.io/etcd/clientv3.test imports
              github.com/coreos/etcd/integration imports
              github.com/coreos/etcd/proxy/grpcproxy imports
              google.golang.org/grpc/naming: modul
      
      google.golang.org/grpc@latest found (v1.56.2, replaced by google.golang.org/grpc@v1.56.2), but does not contain package google.golang.org/grpc/naming
      
      make: *** [Makefile:85: mod-tidy] Error 1

       

      Edits will be needed for the go package imports before we can upgrade.
      Not trying this in the middle of release, rolling back to the current version v1.44.0

      https://pkg.go.dev/google.golang.org/grpc

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joey Joey Armstrong
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes