Skip to content

Commit

Permalink
Add .bazelignore to skip examples, deb_packages subdirectories
Browse files Browse the repository at this point in the history
As of bazelbuild#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.
  • Loading branch information
Andrew Psaltis committed Nov 4, 2021
1 parent 3c520a1 commit 2036add
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 2036add

Please sign in to comment.