Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
504 B
17 lines
504 B
6 years ago
|
|
||
|
# A hacky way to work around the fact that native.bazel_version is only
|
||
|
# available from WORKSPACE macros, not BUILD macros or rules.
|
||
|
#
|
||
|
# Hopefully we can remove this if/when this is fixed:
|
||
|
# https://github.com/bazelbuild/bazel/issues/8305
|
||
|
|
||
|
def _impl(repository_ctx):
|
||
|
s = "bazel_version = \"" + native.bazel_version + "\""
|
||
|
repository_ctx.file("bazel_version.bzl", s)
|
||
|
repository_ctx.file("BUILD", "")
|
||
|
|
||
|
bazel_version_repository = repository_rule(
|
||
|
implementation=_impl,
|
||
|
local=True,
|
||
|
)
|