We're building a new segment that needs new fields in EnrichedFlow. We've updated the protobuf definition and compiled it like this: protoc --go_out=. --go_opt=paths=source_relative pb/flow.proto.
go build . builds a new binary without warnings, running the new binary fails like this:
There's a temporary workaround (build using go build -ldflags "-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn" .) but we'd like to do this properly before creating PRs for our work.
I don't understand the underlying problem, but assuming that my protoc invocation wasn't correct: what's to proper way to recompile the protobuf definition?
After discussion with @debugloop (indirectly by proxy 😛) we'll rename flow.proto to enrichedflow.proto to prevent the namespace problem.
I'll close the issue when making the matching PR.
We're building a new segment that needs new fields in
EnrichedFlow
. We've updated the protobuf definition and compiled it like this:protoc --go_out=. --go_opt=paths=source_relative pb/flow.proto
.go build .
builds a new binary without warnings, running the new binary fails like this:There's a temporary workaround (build using
go build -ldflags "-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn" .
) but we'd like to do this properly before creating PRs for our work.I don't understand the underlying problem, but assuming that my
protoc
invocation wasn't correct: what's to proper way to recompile the protobuf definition?