From 013070103cd6ec498aaa19386d1b0e23848672f0 Mon Sep 17 00:00:00 2001 From: Prakash Kumar Date: Thu, 14 Sep 2023 11:06:43 +0530 Subject: [PATCH 1/2] GOFLAGS in makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5388ad37..73e1f620 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ REGISTRY?=686244538589.dkr.ecr.us-east-2.amazonaws.com BASEIMAGE?=alpine:3.9 GIT_COMMIT =$(shell sh -c 'git log --pretty=format:'%h' -n 1') BUILD_TIME= $(shell sh -c 'date -u '+%Y-%m-%dT%H:%M:%SZ'') - +GOFLAGS:= $(GOFLAGS) "-buildvcs=false" include $(ENV_FILE) export @@ -23,7 +23,6 @@ wire: clean: rm -rf git-sensor - export GOFLAGS=-buildvcs=false run: build ./git-sensor From b97d1ba19a732abec78992ea994d6a537b2c27e4 Mon Sep 17 00:00:00 2001 From: Prakash Kumar Date: Thu, 14 Sep 2023 11:23:33 +0530 Subject: [PATCH 2/2] GOFLAGS modified --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 73e1f620..cbaa8bdc 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ REGISTRY?=686244538589.dkr.ecr.us-east-2.amazonaws.com BASEIMAGE?=alpine:3.9 GIT_COMMIT =$(shell sh -c 'git log --pretty=format:'%h' -n 1') BUILD_TIME= $(shell sh -c 'date -u '+%Y-%m-%dT%H:%M:%SZ'') -GOFLAGS:= $(GOFLAGS) "-buildvcs=false" +GOFLAGS += "-buildvcs=false" include $(ENV_FILE) export