Skip to content

Commit

Permalink
fix: manually ignore bazel-* directories to make using custom Bazel b…
Browse files Browse the repository at this point in the history
…uilds easier (#1181)

Normally, Bazel will ignore its convenience symlinks, so putting them in
the .bazelignore file isn't necessary. However, when
`--output_user_root` is set, which is beneficial to set when using
different Bazel versions (it preserves the analysis cache between
versions), the symlinks aren't ignored. Putting them in the bazelignore
file fixes this.
  • Loading branch information
rickeylev authored May 8, 2023
1 parent 799e63f commit 0efcd94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Normally these are ignored, but if you're using a custom
# build of Bazel with a custom --output_user_root value, Bazel
# tries to follow the symlinks of the other builds and finds
# the WORKSPACE, BUILD, etc files and tries to build them.
bazel-rules_python
bazel-bin
bazel-out
bazel-testlogs

0 comments on commit 0efcd94

Please sign in to comment.