This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch hungry-quark
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/hungry-quark by this push:
new b5d18c841212 Fix docs gulp race: also ignore target directory entries
during glob walk
b5d18c841212 is described below
commit b5d18c841212ff06c43f33a161fe00548a013e23
Author: Guillaume Nodet <[email protected]>
AuthorDate: Sat Mar 28 11:44:12 2026 +0100
Fix docs gulp race: also ignore target directory entries during glob walk
The ignore pattern '**/target/**' only matches paths within target/
but not the target directory entry itself. This allows glob to enter
the directory and race with surefire creating/deleting target/surefire.
Add '**/target' to also skip the directory entry during walk.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
docs/gulpfile.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/gulpfile.js b/docs/gulpfile.js
index 9880997246ff..23e1a1f286b2 100644
--- a/docs/gulpfile.js
+++ b/docs/gulpfile.js
@@ -327,7 +327,7 @@ const tasks = Array.from(sourcesMap).flatMap(([type,
definition]) => {
}
})
- return gulp.src(source, { ignore: ['**/target/**'] })
+ return gulp.src(source, { ignore: ['**/target/**', '**/target'] })
.pipe(filterFn)
.pipe(
map((file, done) => {
@@ -410,7 +410,7 @@ const tasks = Array.from(sourcesMap).flatMap(([type,
definition]) => {
return done()
}
- return gulp.src(source, { ignore: ['**/target/**'] }) // asciidoc files
+ return gulp.src(source, { ignore: ['**/target/**', '**/target'] }) //
asciidoc files
.pipe(through2.obj(extractExamples)) // extracted example files
// symlink links from a fixed directory, i.e. we could link to
// the example files from `destination`, that would not work for