Skip to content

Commit 083a311

Browse files
authored
Ignore all build dirs in bin/check-source (#1291)
The `bin/check-source` script performs checks to ensure that headers are correctly updated in the modified files in a commit. This script ignored certain build directories since they contain generated Swift files. Some build directories were missing in this list (particularly the build directory emitted by `make-test-bundle`). The script has been modified to indiscrimanately ignore all `.build` directories.
1 parent 3268e73 commit 083a311

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/check-source

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ EOF
134134
(
135135
cd "$here/.."
136136
find . \
137-
\( \! -path './.build/*' -a \
138-
\! -path './bin/benchmark/.build/*' -a \
137+
\( \! -path '*/.build/*' -a \
139138
\! -name '.' -a \
140139
\( "${matching_files[@]}" \) -a \
141140
\( \! \( "${exceptions[@]}" \) \) \) | while read line; do

0 commit comments

Comments
 (0)