From a9226117dbf31b77ab468dfdc653483b3a0cbd4a Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Thu, 4 Nov 2021 16:01:56 -0400 Subject: [PATCH] Add .bazelignore to skip examples, deb_packages subdirectories (#457) As of #443, all of the rules_pkg files are now in a WORKSPACE relative to the root of the repository. These are now shared with the `deb_packages/` and `examples/` subdirectories, which contain their own WORKSPACE files. This confuses Bazel and prevents us from testing `//...`. This changes allows us to build/test `//...` by adding those directories to a .bazelignore file at the root of the repository. Most people working on rules_pkg aren't going to be touching these, and if they are, they need to be in those WORKSPACEs anyway, so there should be no harm in this. --- .bazelignore | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .bazelignore diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000..912ca10 --- /dev/null +++ b/.bazelignore @@ -0,0 +1,5 @@ +# The following directories have their own WORKSPACEs (or contain WORKSPACEs), +# so they shouldn't be built when in the main part of the rules_pkg repository. + +deb_packages/ +examples/