Skip to content
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

go_proto_library: drop dependencies on APIv1 WKT packages #2740

Merged
merged 3 commits into from Jun 28, 2021

Conversation

jayconrod
Copy link
Contributor

@jayconrod jayconrod commented Nov 30, 2020

These should not be imported in generated code when protobuf 3.14 or
higher is used.

protobuf 3.14.0 will be the minimum supported version for rules_go 0.25.0.

For #2721
Fixes #2741

Jay Conrod added 2 commits November 30, 2020 17:42
Since protobuf 3.14, the Well Known Types declare APIv2 package paths,
which means generated code that imports them will import APIv2
packages.

This PR is intended to be cherry-picked to the 0.23 and 0.24 release
branches. It may slow down builds, since both APIv1 and APIv2 packages
will be compiled; we can't tell which is needed during analysis.

For bazelbuild#2721
These should not be imported in generated code when protobuf 3.14 or
higher is used.

protobuf 3.14.0 will be the minimum supported version for rules_go 0.25.0.

Fixes bazelbuild#2721
@google-cla google-cla bot added the cla: yes label Nov 30, 2020
@jayconrod
Copy link
Contributor Author

Blocked by protocolbuffers/protobuf#8049.

protoc 3.14.0 does not build on Windows with mingw64. I think this is a bug in protoc source, not mingw.

@vam-google
Copy link
Contributor

@jayconrod Hi Jay! Google Ads is blocked by this. Can we by any chance prioritize this and merge it ASAP?

@jayconrod
Copy link
Contributor Author

@vam-google It looks like protocolbuffers/protobuf#8049 is still open. I can't do anything until that's fixed. Forcing protobuf 3.14 would break Windows cgo users.

@steeve
Copy link
Contributor

steeve commented Feb 14, 2021

protocolbuffers/protobuf@aee143a was merged 3 days ago, FYI

@achew22
Copy link
Member

achew22 commented Feb 14, 2021

I think this is still blocked by a release of protoc that has it included. 3.15.0-rc1 doesn't have it, maybe 3.15.0 final will

https://github.com/protocolbuffers/protobuf/releases

@prestonvanloon
Copy link
Contributor

It's not mentioned in release notes, but v3.15.1 has protocolbuffers/protobuf#8286 included

@akonradi
Copy link

What's next on this PR?

@jayconrod jayconrod merged commit 5d306c4 into bazelbuild:master Jun 28, 2021
@jayconrod jayconrod deleted the upgrade-protobuf branch June 28, 2021 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to protobuf 3.14.0 and drop implicit dependencies on APIv1 WKT packages
6 participants