From 21d8ba22065e9c053c33ecef9e6d0532974c89e4 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Wed, 29 May 2019 08:15:34 -0700 Subject: [PATCH] Don't use `-a` on build (#646) This lets us utilize the go build cache and significantly speeds up builds. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d97d2e3ad..3b0eb9548 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ build: build_tags := netgo osusergo build: OUTPUT_DIR ?= bin build: authors @echo "Building..." - $Q CGO_ENABLED=0 go build -a --tags '$(shell scripts/process_build_tags.sh $(build_tags) $(VK_BUILD_TAGS))' -ldflags '-extldflags "-static"' -o $(OUTPUT_DIR)/$(binary) $(if $V,-v) $(VERSION_FLAGS) ./cmd/$(binary) + $Q CGO_ENABLED=0 go build --tags '$(shell scripts/process_build_tags.sh $(build_tags) $(VK_BUILD_TAGS))' -ldflags '-extldflags "-static"' -o $(OUTPUT_DIR)/$(binary) $(if $V,-v) $(VERSION_FLAGS) ./cmd/$(binary) .PHONY: tags tags: