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
As #3967 says, if we install gRPC-gateway using go install, then protoc-gen-grpc-gateway --version would outputs Version dev, commit unknown, built at unknown because the build info is not linked during build time.
➜ go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@main
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.1-0.20240531172029-a94bb9df9cdf
➜ protoc-gen-grpc-gateway --version
Version v2.20.1-0.20240531172029-a94bb9df9cdf, commit unknown, built at unknown
As #3967 says, if we install gRPC-gateway using
go install
, thenprotoc-gen-grpc-gateway --version
would outputsVersion dev, commit unknown, built at unknown
because the build info is not linked during build time.But i found that golang provides runtime/debug:BuildInfo ,which may helps.
We could use the
BuildInfo
from it if vsc info is not linked by goreleaser:And then check if it works:
The text was updated successfully, but these errors were encountered: