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

*: upgrade vendored protobuf to v3.9.2 #58891

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

rickystewart
Copy link
Collaborator

The old version of protobuf that we had doesn't contain some utilities
that we need for Bazel (namely, the file protobuf_deps.bzl), so move
to a more recent version. Also update WORKSPACE so that our Bazel
build uses the same version of protobuf, and point to our fork rather
than upstream.

Fixes #58227.

Release note (general change): Upgrade to v3.9.2 of protobuf to consume new changes for Bazel.

@rickystewart rickystewart requested review from otan and a team January 12, 2021 22:58
@rickystewart rickystewart requested review from a team as code owners January 12, 2021 22:58
@rickystewart rickystewart requested review from miretskiy and removed request for a team January 12, 2021 22:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart rickystewart removed request for a team and miretskiy January 12, 2021 23:39
@rickystewart
Copy link
Collaborator Author

Fixed issues with examples directory.

Copy link
Contributor

@otan otan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM good provided it goes green!

go.sum Outdated
@@ -644,6 +644,7 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
github.com/prometheus/procfs v0.0.10 h1:QJQN3jYQhkamO4mhfUWqdDH2asK7ONOI9MTWjyAxNKM=
github.com/prometheus/procfs v0.0.10/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/protocolbuffers/protobuf v3.14.0+incompatible h1:8r0H76h/Q/lEnFFY60AuM23NOnaDMi6bd7zuboSYM+o=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i think this should disappear since you removed the examples directory, if not curious about why this got added. what's the output of go mod why github.com/protocolbuffers/protobuf)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's weird. Yeah, if I delete this make vendor_rebuild doesn't put it back I guess? I'll delete this line, re-push, and make sure it goes green again.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go mod tidy should clear it.

@rickystewart rickystewart force-pushed the upgrade_protobuf branch 3 times, most recently from 33e8cd6 to 285e534 Compare January 14, 2021 00:08
The old version of `protobuf` that we had doesn't contain some utilities
that we need for Bazel (namely, the file `protobuf_deps.bzl`), so move
to a more recent version. Also update `WORKSPACE` so that our Bazel
build uses the same version of `protobuf`, and point to our fork rather
than upstream.

Fixes cockroachdb#58227.

Release note (general change): Upgrade to v3.9.2 of `protobuf` to
consume new changes for Bazel.
@rickystewart
Copy link
Collaborator Author

bors r+

1 similar comment
@rickystewart
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 14, 2021

Already running a review

@craig
Copy link
Contributor

craig bot commented Jan 14, 2021

Build succeeded:

@craig craig bot merged commit 690c122 into cockroachdb:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build,bazel: pin the right protoc version in use within bazel
3 participants