Skip to content

Switch from gogo to protoc-gen-go, fix build#491

Closed
chndler wants to merge 5 commits intomainfrom
chandler/switch_to_protoc_gen_go
Closed

Switch from gogo to protoc-gen-go, fix build#491
chndler wants to merge 5 commits intomainfrom
chandler/switch_to_protoc_gen_go

Conversation

@chndler
Copy link
Contributor

@chndler chndler commented Feb 10, 2026

What was changed

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@chndler chndler requested a review from a team as a code owner February 10, 2026 00:17
anekkanti
anekkanti previously approved these changes Feb 10, 2026
go.mod Outdated
require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.11-20260209202127-80ab13bee0bf.1
github.com/go-playground/validator/v10 v10.13.0
github.com/gogo/protobuf v1.3.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected this to go away.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove all references to gogo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@anekkanti anekkanti self-requested a review February 10, 2026 18:25
@anekkanti anekkanti dismissed their stale review February 10, 2026 18:26

I think we have more work to do.
We need to remove all references to gogo.

Comment on lines +34 to +45
if pm, ok := m.(proto.Message); ok {
marshaler := protojson.MarshalOptions{
Indent: "\t",
EmitUnpopulated: true,
}
b, err := marshaler.Marshal(pm)
if err != nil {
return "", err
}
return string(b), nil
}
b, err := json.MarshalIndent(m, "", "\t")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the protojson produce the similar output as jsonpb?
If not this backward incompatible and effects all outputs by tcld.

@chndler chndler closed this Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments