From a19a6f9accc37d2015acf88a9a84354eec0eadf6 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 6 Jul 2023 06:26:02 +0300 Subject: [PATCH] Catch pipefail errors in Makefile https://stackoverflow.com/questions/33925523/how-to-set-pipefail-in-a-makefile --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ccdd8a7..c88b24e 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ BUILD_DIR = ./dist/dive_linux_amd64 BUILD_PATH = $(BUILD_DIR)/$(BIN) PWD := ${CURDIR} PRODUCTION_REGISTRY = docker.io +SHELL = /bin/bash -o pipefail TEST_IMAGE = busybox:latest all: gofmt clean build