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
Just using the google.protobuf.Timestamp in a message causes timestamppb to be imported but only for side effects _ "google.golang.org/protobuf/types/known/timestamppb". This causes build errors as this package is referenced in the code when dealing with these properties. Removing the generated _ completely solves the issue but this is such a common use case I'm wondering if I'm doing something wrong.
Just using the
google.protobuf.Timestamp
in a message causes timestamppb to be imported but only for side effects_ "google.golang.org/protobuf/types/known/timestamppb"
. This causes build errors as this package is referenced in the code when dealing with these properties. Removing the generated_
completely solves the issue but this is such a common use case I'm wondering if I'm doing something wrong.Is there any way to force this to import? I'm on Go 1.17x if it's important. And building with buf
The text was updated successfully, but these errors were encountered: