-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API breakage in minor version breaks go install #1088
Comments
If I understand correctly, your build container builds the latest version of Code generated with version X of the generator should use at least version X of the runtime or later. |
This leads me to the following:
I have the feeling like there needs to be a general communication what guarantees/versioning schemes proto/protoc with go wants to support. It would even be better to have this sementic then codified so that only supported combinations compile (without warnings). |
It is codified and the rule is simple: whatever version of |
@abergmeier - I ran into a similar issue, the move to v1.4.0 completely broke our builds. Since
|
Closing as there isn't anything actionable for us to do on our end. Fundamentally, if the integration tests are building See #763 (comment) for more or less the exact same issue from mid-2018. |
What version of protobuf and what language are you using?
Version:
v1.12
What did you do?
We pinned down go modules and vendor. In our build container, we do
go install github.com/golang/protobuf/protoc-gen-go
. In 1.12 it seems likeinstall
is not yet module + vendor aware. Thus it downloads the latest version ofprotoc-gen-go
. It then uses this latest version to generate go code for protobuf.What did you expect to see?
Since protobuf has increased minor version only I would expect everything to continue working.
What did you see instead?
The generated code no longer works with older (pre 1.20) versions of proto module, since the API was broken.
Anything else we should know about your project / environment?
For us the solution was to upgrade to golang 1.14, where
install
is module + vendor compatible.Main complaint is that a new version of protoc was released with API breakages without increasing the major number.
The text was updated successfully, but these errors were encountered: