Closed
Description
Over the weekend, it would appear that much of the generated code no longer compiles, almost all of which is related to the packages golang.org/x/net/context
(I'm using Go 1.10.3) or google.golang.org/grpc
not being used:
./cluster.pb.go:18:8: imported and not used: "golang.org/x/net/context" as golang_org_x_net_context
./cluster.pb.go:19:8: imported and not used: "google.golang.org/grpc" as google_golang_org_grpc
If I run goimports -w
on the generated files it does fix these errors, but there appear to be a large number of strange changes. for instance:
- All the
fileDescriptor
names moved from (e.g.)fileDescriptorCluster
tofileDescriptor_cluster_c98421a8c26a96a1
(making diffs a lot less readable) - There are a number of strange package import aliases, such as
import strings "strings"
andimport reflect "reflect"
etc -- do these really need to be aliased? - Some of the import aliases have been renamed to strange unwieldly strings, e.g.
import sortkeys "github.com/gogo/protobuf/sortkeys"
is nowimport github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
-- is that deliberate? - Using
gogofaster
orgogoslick
there are now a lot ofXXX_
prefixed exported variables in structs, such asXXX_sizecache
andXXX_NoUnkeyedLiteral
, and the re-appearance of methods such asXXX_Unmarshal
,XXX_Marshal
,XXX_Merge
,XXX_Size
,XXX_DiscardUnknown
etc.
I can't pinpoint where these issues began within the dev merge, but something is definitely substantially different compared to Friday. Should I be following some particular branch for a stable version?
Metadata
Metadata
Assignees
Labels
No labels