From 1a6cc9cc5b31609d4e76e8b9dba181259ef8e3fe Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Thu, 4 Jan 2024 07:57:17 -0800 Subject: [PATCH] use .bazelignore instead of fake repositories PiperOrigin-RevId: 595705201 --- .bazelignore | 6 ++++++ .gitattributes | 2 +- WORKSPACE.bazel | 25 ------------------------- 3 files changed, 7 insertions(+), 26 deletions(-) create mode 100644 .bazelignore diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 000000000..cdc5ebcd8 --- /dev/null +++ b/.bazelignore @@ -0,0 +1,6 @@ +# Exclude Bazel roots (workspaces) +c/fuzz +go +java +js +research diff --git a/.gitattributes b/.gitattributes index a0853c247..080c2a96c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,10 +4,10 @@ tests/testdata/* binary **/** export-ignore # Add top-level files +.bazelignore !export-ignore BUILD.bazel !export-ignore CHANGELOG.md !export-ignore CMakeLists.txt !export-ignore -compiler_config_setting.bzl !export-ignore CONTRIBUTING.md !export-ignore LICENSE !export-ignore MANIFEST.in !export-ignore diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index c26ddf8dd..d5f3096cb 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -1,26 +1 @@ workspace(name = "org_brotli") - -local_repository( - name = "ignore_org_brotli_fuzz", - path = "c/fuzz", -) - -local_repository( - name = "ignore_org_brotli_go", - path = "go", -) - -local_repository( - name = "ignore_org_brotli_java", - path = "java", -) - -local_repository( - name = "ignore_org_brotli_js", - path = "js", -) - -local_repository( - name = "ignore_org_brotli_research", - path = "research", -)