8000 fix: manually ignore bazel-* directories to make using custom Bazel b… · chrislovecnm/rules_python@0efcd94 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0efcd94

Browse files
authored
fix: manually ignore bazel-* directories to make using custom Bazel builds easier (bazel-contrib#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.
1 parent 799e63f commit 0efcd94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.bazelignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Normally these are ignored, but if you're using a custom
2+
# build of Bazel with a custom --output_user_root value, Bazel
3+
# tries to follow the symlinks of the other builds and finds
4+
# the WORKSPACE, BUILD, etc files and tries to build them.
5+
bazel-rules_python
6+
bazel-bin
7+
bazel-out
8+
bazel-testlogs

0 commit comments

Comments
 (0)
0