golang / protobuf

Go support for Google's protocol buffers
BSD 3-Clause "New" or "Revised" License
9.74k stars 1.58k forks source link

Deprecated module github.com/golang/protobuf being used #1557

Closed SuzukiHonoka closed 1 year ago

SuzukiHonoka commented 1 year ago

What version of protobuf and what language are you using? Version: v1.31.0 Lang: Go

What did you do? Deprecated module github.com/golang/protobuf. Deprecation notice: Use the "google.golang.org/protobuf" module instead.

What did you expect to see? No deprecated module used

What did you see instead? Deprecated module used

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

"C:\Program Files\Go\bin\go.exe" mod why -m github.com/golang/protobuf #gosetup
# github.com/golang/protobuf
google.golang.org/grpc/credentials
github.com/golang/protobuf/proto

Anything else we should know about your project / environment? No

puellanivis commented 1 year ago

Looking up where the dependency occurs demonstrates that this is a known and expected condition:

import (
    // Ensure that any program using "github.com/golang/protobuf"
    // uses a version that wraps this module so that there is a
    // unified view on what protobuf types are globally registered.
    _ "github.com/golang/protobuf/proto"
)

I’m going to go ahead and just directly close this issue since this is known and expected, and there is no actionable response. We will not be removing the dependency.