From 66e43375b84ca69b964261e4f039c68331c599f3 Mon Sep 17 00:00:00 2001 From: Kwitsch Date: Wed, 14 Sep 2022 16:26:24 +0200 Subject: [PATCH] removed "make build-static" --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ce5e1606..5517c837 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ .PHONY: all clean build swagger test lint run help .DEFAULT_GOAL := help -VERSION?=$(shell git describe --always --tags) -BUILD_TIME?=$(shell date '+%Y%m%d-%H%M%S') +VERSION:=$(shell git describe --always --tags) +BUILD_TIME=$(shell date '+%Y%m%d-%H%M%S') DOCKER_IMAGE_NAME=spx01/blocky BINARY_NAME=blocky BIN_OUT_DIR=bin @@ -29,10 +29,6 @@ build: ## Build binary go generate ./... go build -v -ldflags="-w -s -X github.com/0xERR0R/blocky/util.Version=${VERSION} -X github.com/0xERR0R/blocky/util.BuildTime=${BUILD_TIME}" -o $(BIN_OUT_DIR)/$(BINARY_NAME)$(BINARY_SUFFIX) -build-static: ## Build static binary - go generate ./... - go build -tags static -v -ldflags="-linkmode external -extldflags -static -X github.com/0xERR0R/blocky/util.Version=${VERSION} -X github.com/0xERR0R/blocky/util.BuildTime=${BUILD_TIME}" -o $(BIN_OUT_DIR)/$(BINARY_NAME)$(BINARY_SUFFIX) - test: ## run tests go run github.com/onsi/ginkgo/v2/ginkgo -v --coverprofile=coverage.txt --covermode=atomic -cover ./...