Load proto_library from @rules_proto//proto:defs.bzl
Running buildifier at the head of master with -lint=warn shows the warning: native-proto: Function "proto_library" is not global anymore and needs to be loaded from "@rules_proto//proto:defs.bzl" Add rules_proto in the WORKSPACE and use it in the proto BUILD. Change-Id: I54363f08cab3a184b6b3cd1ff6baaa38824aa9a3
This commit is contained in:
parent
31c82401f0
commit
32b499b719
11
WORKSPACE
11
WORKSPACE
@ -119,6 +119,17 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
|
||||
|
||||
gazelle_dependencies()
|
||||
|
||||
# Protobuf rules support
|
||||
http_archive(
|
||||
name = "rules_proto",
|
||||
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
|
||||
strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
|
||||
"https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
# Dependencies for PolyGerrit local dev server.
|
||||
go_repository(
|
||||
name = "com_github_robfig_soy",
|
||||
|
@ -1,4 +1,5 @@
|
||||
load("@rules_java//java:defs.bzl", "java_proto_library")
|
||||
load("@rules_proto//proto:defs.bzl", "proto_library")
|
||||
|
||||
proto_library(
|
||||
name = "cache_proto",
|
||||
|
Loading…
Reference in New Issue
Block a user