You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The google.golang.org/genproto/googleapis/rpc/status is defined within the google.golang.org/genproto package. Although it is included by the google.golang.org/grpc package during program compilation, there is no explicit definition of the google.golang.org/genproto version. However, as google.golang.org/genproto is a dependency, its version information is included in the Go ELF binary file at compile time and can be retrieved by parsing Go module data.
Starting from google.golang.org/grpc v1.15.0, go.mod was introduced, so regardless of when the source code is compiled, the version pulled in is fixed.
However, for binaries compiled with google.golang.org/grpc v1.8.0 - v1.14.0, due to the lack of a go.mod file, the actual version of google.golang.org/genproto pulled in during compilation is the latest release at that time.
For example:
If an application requiring google.golang.org/grpc v1.14.0 is compiled in 2024, the version pulled in might be google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38.
If the same code is compiled in 2023, the version pulled in might be google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98.
This can lead to mismatches in the offsets of google.golang.org/genproto/googleapis/rpc/status between offset_results.json and the actual binary for grpc v1.8.0 - v1.14.0.
Consider the following suggestions please:
Retain the google.golang.org/genproto/googleapis/rpc/status version definition in the google.golang.org/grpc group, but set the offset values for v1.8.0 - v1.14.0 to null to ensure that incorrect offsets aren’t read at runtime.
Move the version definition for google.golang.org/genproto/googleapis/rpc/status to a new google.golang.org/genproto group, allowing the correct offsets to be obtained using the version information from google.golang.org/genproto.
The text was updated successfully, but these errors were encountered:
The
google.golang.org/genproto/googleapis/rpc/status
is defined within thegoogle.golang.org/genproto
package. Although it is included by thegoogle.golang.org/grpc
package during program compilation, there is no explicit definition of thegoogle.golang.org/genproto
version. However, asgoogle.golang.org/genproto
is a dependency, its version information is included in the Go ELF binary file at compile time and can be retrieved by parsing Go module data.Starting from
google.golang.org/grpc v1.15.0
,go.mod
was introduced, so regardless of when the source code is compiled, the version pulled in is fixed.However, for binaries compiled with
google.golang.org/grpc v1.8.0 - v1.14.0
, due to the lack of ago.mod
file, the actual version ofgoogle.golang.org/genproto
pulled in during compilation is the latest release at that time.For example:
If an application requiring
google.golang.org/grpc v1.14.0
is compiled in 2024, the version pulled in might begoogle.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38
.If the same code is compiled in 2023, the version pulled in might be
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98
.This can lead to mismatches in the offsets of
google.golang.org/genproto/googleapis/rpc/status
betweenoffset_results.json
and the actual binary forgrpc v1.8.0 - v1.14.0
.Consider the following suggestions please:
Retain the
google.golang.org/genproto/googleapis/rpc/status
version definition in thegoogle.golang.org/grpc
group, but set the offset values forv1.8.0 - v1.14.0
tonull
to ensure that incorrect offsets aren’t read at runtime.Move the version definition for
google.golang.org/genproto/googleapis/rpc/status
to a newgoogle.golang.org/genproto
group, allowing the correct offsets to be obtained using the version information fromgoogle.golang.org/genproto
.The text was updated successfully, but these errors were encountered: