However, this leads to an infinite fork loop when dep fails or is not installed, possibly crashing the host machine.
This PR works around the infinite loop by checking the MAKELEVEL and aborting if it gets too high, which still allows the command to be retried a reasonable number of times.
Another possible approach is just looping around dep a set number of times.
In #164, a
|| $(MAKE) vendor-install
was added to thevendor-install
target to help with "poor network circumstances": https://github.com/gluster/gluster-prometheus/blob/3ebaacc2c690223f77fc93f5f237ab5065138660/Makefile#L82-L85However, this leads to an infinite fork loop when
dep
fails or is not installed, possibly crashing the host machine.This PR works around the infinite loop by checking the MAKELEVEL and aborting if it gets too high, which still allows the command to be retried a reasonable number of times. Another possible approach is just looping around
dep
a set number of times.Fixes #195.