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.
This commit is contained in:
parent
203604a463
commit
cfced19000
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
|
@ -164,6 +164,10 @@ src/lib/patternfly/_fonts.scss:
|
||||||
git restore --staged pkg/lib/patternfly
|
git restore --staged pkg/lib/patternfly
|
||||||
mkdir -p src/lib && mv pkg/lib/patternfly src/lib/patternfly && rmdir -p pkg/lib
|
mkdir -p src/lib && mv pkg/lib/patternfly src/lib/patternfly && rmdir -p pkg/lib
|
||||||
|
|
||||||
|
# force serialization of the targets that call git, as they compete for the git lock
|
||||||
|
bots: test/common
|
||||||
|
test/common: src/lib/patternfly/_fonts.scss
|
||||||
|
|
||||||
$(NODE_MODULES_TEST): package.json
|
$(NODE_MODULES_TEST): package.json
|
||||||
# if it exists already, npm install won't update it; force that so that we always get up-to-date packages
|
# if it exists already, npm install won't update it; force that so that we always get up-to-date packages
|
||||||
rm -f package-lock.json
|
rm -f package-lock.json
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue