Merge pull request #2373 from mukundansundar/add-err-check
exit on error for modtidy-all
This commit is contained in:
		
						commit
						4a983f3caf
					
				
							
								
								
									
										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