From c8758ec38a4dfe15e259ce9465e92a86769d046f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 4 Sep 2019 16:42:43 +0200 Subject: [PATCH] Build a static executable --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a0800c..3ee4640 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ all: test build build: deps mkdir -p $(BUILD_DIR) - $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v + CGO_ENABLED=0 $(GOBUILD) -o $(BUILD_DIR)/$(BINARY_NAME) -v test: build $(GOTEST) -race -coverprofile=$(TMP_DIR)/c.out ./... @@ -26,7 +26,7 @@ coverage: test $(GOTOOL) cover -html=$(TMP_DIR)/c.out -o $(OUTPUT_DIR)/coverage.html install: build - go install ./... + CGO_ENABLED=0 go install ./... acceptance: install make -C ./spec/test