exit on error for modtidy-all
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
parent
3e08736911
commit
2ddace1a09
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue