Hey

We are confused about something.

When we generate our .proto files, they are now referring to:


import (
reflect "reflect"
sync "sync"

proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

According to FAQ, it says it is because we are using an old version of 
github.com/golang/protobuf:

https://developers.google.com/protocol-buffers/docs/reference/go/faq#enforce-version-apiv1

But everywhere it says google.golang.org/protobuf should be used, and not 
github.com/golang/protobuf

So this is really confusing.

We are using protoc version 3.11.4 (the latest) and protoc-gen-go 1.21 (the 
latest) and using Protocol Buffers v3 syntax.

Why is protoc 3.11.4 and protoc-gen-go stil use github.com and not 
google.golang.org?

And how do fix it? Is it possible to make protoc-gen-go use 
google.golang.org for the auto-generated Go-files?


Thanks for any response,

// Christoffer

https://developers.google.com/protocol-buffers/docs/reference/go/faq#enforce-version-apiv1

https://developers.google.com/protocol-buffers/docs/reference/go/faq#enforce-version-apiv1

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/b1522b35-0ffd-424c-aabd-75569e2694ac%40googlegroups.com.

Reply via email to