From cfced1900069ed816abd253938508c29e729b47d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 7 Sep 2020 14:36:21 +0200 Subject: [PATCH] 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. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ead3972..e28e42e 100644 --- a/Makefile +++ b/Makefile @@ -164,6 +164,10 @@ src/lib/patternfly/_fonts.scss: git restore --staged pkg/lib/patternfly 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 # 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