-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
I have a repository structure like this:
api-protos/
protos/
BUILD
pubsub/
BUILD
v1alpha2/
pubsub.proto
BUILD
WORKSPACE
In my WORKSPACE
file I have this:
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "org_pubref_rules_protobuf",
remote = "https://github.com/pubref/rules_protobuf",
tag = "v0.8.2"
)
git_repository(
name = "org_pubref_rules_node",
remote = "https://github.com/pubref/rules_node.git",
tag = "v0.5.0"
)
load("@org_pubref_rules_node//node:rules.bzl", "node_repositories", "yarn_modules")
node_repositories()
load("@org_pubref_rules_protobuf//node:rules.bzl", "node_proto_repositories")
node_proto_repositories()
yarn_modules(
name = "yarn_modules",
deps = {
"google-protobuf": "3.4.0",
"grpc": "1.6.0"
},
)
and the protos/pubsub/v1alpha2/BUILD
file has:
load("@org_pubref_rules_protobuf//node:rules.bzl", "node_proto_library")
node_proto_library(
name = "pubsub",
protos = ["pubsub.proto"],
verbose = 0,
with_grpc = True,
)
If I run bazel build //protos/pubsub/v1alpha2:pubsub
I get the following error:
DEBUG: Rule 'org_pubref_rules_node' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "c7b9ae3eb2fa75bec2fdd4d188b57ab431796f5d", shallow_since = "1555893501 -0600" and dropping ["tag"]
DEBUG: Repository org_pubref_rules_node instantiated at:
/..../api-protos/WORKSPACE:9:15: in <toplevel>
Repository rule git_repository defined at:
/..../external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
ERROR: Traceback (most recent call last):
File "/..../external/org_pubref_rules_node/node/internal/yarn_modules.bzl", line 105, column 28, in <toplevel>
"_node": attr.label(
Error in label: label() got unexpected keyword argument 'single_file'
ERROR: error loading package '': in /..../external/org_pubref_rules_node/node/rules.bzl: Extension file 'node/internal/yarn_modules.bzl' has errors
INFO: Elapsed time: 0.058s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
How do I fix that?
Metadata
Metadata
Assignees
Labels
No labels