Such a flag would be useful for reproducible builds between developers. Similarly, the source code files generated by protoc-gen-grpc-web does not include any version information to identify the version used to generate said files. Such version information is included in source files generated by other plugins, e.g.:
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: ag/ag.proto
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.19.4
// source: ag/ag.proto
I propose to add such version information to generated code files along with support for a corresponding --version flag to the protoc-gen-grpc-web plugin.
The official
protoc
compiler and several plugins support a--version
flag:However, no such flag is recognized by:
Such a flag would be useful for reproducible builds between developers. Similarly, the source code files generated by
protoc-gen-grpc-web
does not include any version information to identify the version used to generate said files. Such version information is included in source files generated by other plugins, e.g.:I propose to add such version information to generated code files along with support for a corresponding
--version
flag to theprotoc-gen-grpc-web
plugin.