Skip to content

Commit 8723d01

Browse files
committed
fix: exclude bazel output directories from all_files glob
The all_files filegroup was including bazel-* symlinks which point to temporary build artifacts that may not exist, causing build failures. Exclude bazel-* and .git directories from the glob pattern to prevent these transient files from being included in the filegroup. This fixes build errors like: missing input file '//:bazel-out/_tmp/actions/stderr-X'
1 parent a552e66 commit 8723d01

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ buildifier(
2222
# Documentation generation
2323
filegroup(
2424
name = "all_files",
25-
srcs = glob(["**"]),
25+
srcs = glob(
26+
["**"],
27+
exclude = [
28+
"bazel-*/**",
29+
".git/**",
30+
],
31+
),
2632
)
2733

2834
# Version file for stamping

0 commit comments

Comments
 (0)