Skip to content

Commit cfced19

Browse files
committed
Makefile: Serialize git cloning targets
The `bots`, `test/common`, and `src/lib/patternfly` targets cannot be run in parallel, as they compete for the git lock. Serialize them by adding arbitrary dependencies to them.
1 parent 203604a commit cfced19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ src/lib/patternfly/_fonts.scss:
164164
git restore --staged pkg/lib/patternfly
165165
mkdir -p src/lib && mv pkg/lib/patternfly src/lib/patternfly && rmdir -p pkg/lib
166166

167+
# force serialization of the targets that call git, as they compete for the git lock
168+
bots: test/common
169+
test/common: src/lib/patternfly/_fonts.scss
170+
167171
$(NODE_MODULES_TEST): package.json
168172
# if it exists already, npm install won't update it; force that so that we always get up-to-date packages
169173
rm -f package-lock.json

0 commit comments

Comments
 (0)