Skip to content

Commit 8bf696f

Browse files
committed
Merge pull request #2937 from aledbf/exit_on_error_compiling
fix(builder): exit if an error occur compiling go
2 parents 23f77a8 + 43d8a92 commit 8bf696f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BINARY_DEST_DIR := image/bin
99

1010
build: check-docker
1111
for i in $(BINARIES); do \
12-
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -v -ldflags '-s' -o $(BINARY_DEST_DIR)/$$i bin/$$i.go ; \
12+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 godep go build -a -v -ldflags '-s' -o $(BINARY_DEST_DIR)/$$i bin/$$i.go || exit 1; \
1313
done
1414
docker build -t $(IMAGE) image
1515

0 commit comments

Comments
 (0)