-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRPC depends on GRPC? #3789
Comments
The
Is it because of transitive dependencies? gRPC-Go depends on something which has a dependency on older versions of gRPC-Go? |
Yes, could be due to transitive dependicies. go.sum has many duplicate entries. It probably all comes down to golang/go#33008 We don't manually edit go.sum. We just run |
I think it could from dependencies not calling go mod tidy on go.sum? It seems strange to have a circular dependency on grpc though? It's just concerning to see extra entries in go.sum when trying to determine what is being compiled into a binary. |
Technically, those are grpc with different versions, so the dependency is not circular :) If I remember correctly, a module appearing in go.mod/go.sum doesn't necessarily mean it will be compiled into the final binary. Those are dependencies of the module, but during compiling, only necessary packages are pulled in. And in the end, this is a question about the go module package management. There's not much we can do here. |
Howdy! We were looking into why some of our code seems to include older version of grpc, and it turns out that they're coming from inside the grpc package. This pr https://github.com/grpc/grpc-go/pull/3083/files seems to have pulled in grpc in go.sum....question...why? Isn't it a bit sketch for grpc to have go.sum that refers to older versions of grpc?
The text was updated successfully, but these errors were encountered: