Catch pipefail errors in Makefile

https://stackoverflow.com/questions/33925523/how-to-set-pipefail-in-a-makefile
This commit is contained in:
Anatoli Babenia 2023-07-06 06:26:02 +03:00 committed by GitHub
parent 361037f272
commit a19a6f9acc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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