Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Makefile: set a timeout on glide but allow a 2nd attempt
Browse files Browse the repository at this point in the history
Set a timeout of 20minutes on running glide but if glide fails
run it again.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
  • Loading branch information
iamniting authored and phlogistonjohn committed Jan 22, 2021
1 parent 400ea80 commit 70ba652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ifndef HGPATH
endif
echo "Installing vendor directory"
if [ "$(GLIDE_HOME)" ]; then mkdir -p "$(GLIDE_HOME)"; fi
$(GLIDE) install -v
timeout 20m $(GLIDE) install -v || timeout 20m $(GLIDE) install -v

glide.lock: glide.yaml
echo "Glide.yaml has changed, updating glide.lock"
Expand Down Expand Up @@ -155,7 +155,7 @@ linux_arm_dist:

linux_arm64_dist:
GOOS=linux GOARCH=arm64 $(MAKE) dist

linux_s390x_dist:
GOOS=linux GOARCH=s390x $(MAKE) dist

Expand Down

0 comments on commit 70ba652

Please sign in to comment.