From 1e7ea1d8e61b7cd51149a2dd491bc86ff8ef460c Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Mon, 4 Jun 2018 17:53:16 +0200 Subject: Inverse bazel project/workspace tree (#677) * Inverse bazel workspace tree. Now each subproject directly depends on root (c) project. This helps to mitigate Bazel bug bazelbuild/bazel#2391; short summary: Bazel does not work if referenced subproject `WORKSPACE` uses any repositories that embedding project does not. Bright side: building C project is much faster; no need to download closure, go and JDK... --- js/WORKSPACE | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/WORKSPACE (limited to 'js') diff --git a/js/WORKSPACE b/js/WORKSPACE new file mode 100644 index 0000000..b364e5f --- /dev/null +++ b/js/WORKSPACE @@ -0,0 +1,14 @@ +workspace(name = "org_brotli_js") + +http_archive( + name = "io_bazel_rules_closure", + sha256 = "a80acb69c63d5f6437b099c111480a4493bad4592015af2127a2f49fb7512d8d", + strip_prefix = "rules_closure-0.7.0", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz", + "https://github.com/bazelbuild/rules_closure/archive/0.7.0.tar.gz", + ], +) + +load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") +closure_repositories() -- cgit v1.1