From e92f8c8ce6cda87968eab0617355eda72a1bbbda Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 19 Apr 2023 12:32:38 +0200 Subject: proto rules: reattach toolchain Restore the behaviour that, when the rules are imported via just-import-git, the proto tool chain comes as a dependency. In this way the rules can be used in an environment with just a C/C++ compiler present while still having proto available. --- etc/repos.template.json | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'etc/repos.template.json') diff --git a/etc/repos.template.json b/etc/repos.template.json index 4bdd1dc..c14780b 100644 --- a/etc/repos.template.json +++ b/etc/repos.template.json @@ -1,9 +1,16 @@ -{ "main": "rules" +{ "main": "rules with bundled tools" , "repositories": - { "rules": - { "repository": {"type": "file", "path": "rules"} + { "rules": {"repository": {"type": "file", "path": "rules"}} + , "rules with bundled tools": + { "repository": "rules" + , "target_root": "just/defaults" + , "target_file_name": "TARGETS.just" + , "rule_root": "rules" , "bindings": - {"protoc": "just/protobuf", "grpc": "just/com_github_grpc_grpc"} + { "base": "just/rules" + , "protoc": "just/protobuf" + , "grpc": "just/com_github_grpc_grpc" + } } , "tests": { "repository": {"type": "file", "path": "tests"} -- cgit v1.2.3