From 74b22389315757cd475d401b74c22075ada9b387 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Fri, 9 Jan 2026 16:55:02 -0800 Subject: [PATCH] fix: add .git to .bazelignore (#9008) As noted in the comment, this was causing a problem for me locally because Sapling backed up some files under `.git/sl` named `BUILD.bazel` and so Bazel tried to parse them. It's a bit surprising that Bazel does not ignore `.git` out of the box such that you have to opt-in to considering it rather than opting-out. --- .bazelignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .bazelignore diff --git a/.bazelignore b/.bazelignore new file mode 100644 index 0000000000..eda018aeb2 --- /dev/null +++ b/.bazelignore @@ -0,0 +1,3 @@ +# Without this, Bazel will consider BUILD.bazel files in +# .git/sl/origbackups (which can be populated by Sapling SCM). +.git