exit on error for modtidy-all

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
Mukundan Sundararajan 2022-12-17 11:23:05 +05:30
parent 3e08736911
commit 2ddace1a09
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ MODFILES := $(shell find . -name go.mod)
define modtidy-target
.PHONY: modtidy-$(1)
modtidy-$(1):
cd $(shell dirname $(1)); go mod tidy -compat=1.19; cd -
cd $(shell dirname $(1)); go mod tidy -compat=1.19 || { echo "There was an error in running go mod tidy for this file,"; exit 1;}; cd -
endef
define replaceruntime-dapr