commit | 244e0b64fdc6a89df8b1750eada7b909b3cbc459 | [log] [tgz] |
---|---|---|
author | Dan Halperin <dhalperi@users.noreply.github.com> | Tue Jan 25 08:40:48 2022 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 25 17:40:48 2022 +0100 |
tree | 919ba7535204b11098dd49100e5d9994fcbf346d | |
parent | 11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8 [diff] |
Upgrade to protobuf 3.19.2 (#109) * upgrade to protobuf 3.19.2 This is for CVE-2021-22569 . See: https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.2 * Also delete invalid reference six has been gone from protobuf since 3.19.0: https://github.com/protocolbuffers/protobuf/commit/f8a22b45c04162b117204bb7c1211e1e4e13f19d
This repository contains Starlark implementation of Protobuf rules in Bazel.
For the list of Proto rules, see the Bazel documentation.
To get started with rules_proto
, add the following to your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_proto", sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1", strip_prefix = "rules_proto-4.0.0", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", ], ) load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") rules_proto_dependencies() rules_proto_toolchains()
Then, in your BUILD
files, import and use the rules:
load("@rules_proto//proto:defs.bzl", "proto_library") proto_library( ... )
If you're migrating from the native proto rules to rules_proto
, you can use the following buildifier command to automate the changes to your BUILD
and .bzl
files:
buildifier --lint=fix --warnings=native-proto <path/to/BUILD>
Bazel and rules_proto
are the work of many contributors. We appreciate your help!
To contribute, please read the contribution guidelines: CONTRIBUTING.md.
Note that the rules_proto
use the GitHub issue tracker for bug reports and feature requests only.
For asking questions see:
#proto
on slack.bazel.build