add go_package, regenerate Go binding file#22
Conversation
|
Thanks. I'll have a look ASAP. In the meantime, you could add the DCO, see https://github.com/probot/dco#how-it-works |
Signed-off-by: Flier Lu <[email protected]>
|
@flier which protoc version have you used to regenerate the Go files? I tried 3.3.0 and 3.6.0 and got quite different results each time. |
|
@beorn7 I use the |
|
Weirdly, I have used 3.6.0, too (the newest released version), and still the output differs quite a lot. Anyway, I'll just merge this and then regenerate the go code again so that I don't flip back and forth during my own development. |
|
Thanks, the pre-generated code will fine, because I always regenerate it on the building :) |
full diff: prometheus/client_model@99fa1f4...v0.1.0 - prometheus/client_model#22 add `go_package`, regenerate Go binding file - prometheus/client_model#31 Support Go Modules - prometheus/client_model#38 Remove all languages but Go and add a deprecation note Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: prometheus/client_model@6f38060...v0.1.0 - prometheus/client_model#22 add `go_package`, regenerate Go binding file - prometheus/client_model#31 Support Go Modules - prometheus/client_model#38 Remove all languages but Go and add a deprecation note Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: prometheus/client_model@6f38060...v0.1.0 - prometheus/client_model#22 add `go_package`, regenerate Go binding file - prometheus/client_model#31 Support Go Modules - prometheus/client_model#38 Remove all languages but Go and add a deprecation note Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: 9c99f8b9b3d16e1975f07ae08f418949f76e4a02 Component: engine
full diff: prometheus/client_model@99fa1f4...v0.1.0 - prometheus/client_model#22 add `go_package`, regenerate Go binding file - prometheus/client_model#31 Support Go Modules - prometheus/client_model#38 Remove all languages but Go and add a deprecation note Signed-off-by: Sebastiaan van Stijn <[email protected]>
When import the
metrics.protoin a gRPC service definition, the protoc-gen-go will generate a wrong import path without the go_package