Max Eronin

Results 3 comments of Max Eronin

There's a workaround to gracefully handle exit: ```go type Exit int func exit(_ *prompt.Buffer) { panic(Exit(0)) } func handleExit() { switch v := recover().(type) { case nil: return case Exit:...

Checking that all developers use the same version of protoc is not not very realistic honestly. Also not quite sure what the benefit of it is. The hash it generates...

@donaldgraham no. This is how golang/protobuf generates that descriptor variable: https://github.com/golang/protobuf/blob/8d0c54c1246661d9a51ca0ba455d22116d485eaa/protoc-gen-go/generator/generator.go#L284 Basically just "fileDescriptor_" + hashOf(filename) Whereas gogo involves some complicated magic scheme with descriptor fingerprinting: https://github.com/gogo/protobuf/blob/e5d5b02ea0b3c4fd2a996e909ffa0f3421d6c91b/protoc-gen-gogo/generator/generator.go#L319