summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2022-02-02 12:00:33 +1100
committerAsh McKenzie <amckenzie@gitlab.com>2022-02-02 12:00:33 +1100
commit4c52728138b01bc037301c9260cee64692eddea7 (patch)
treea8edc8a88ca2f9fbe4888d4f5f3b3f0018db816b /Makefile
parent9e2372ca83907a87e00610d91a837c50d129c29d (diff)
downloadgitlab-shell-4c52728138b01bc037301c9260cee64692eddea7.tar.gz
Ignore vendor/ directory even if present
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae83d7c..5518171 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ GO_SOURCES := $(shell find . -name '*.go')
VERSION_STRING := $(shell git describe --match v* 2>/dev/null || awk '$$0="v"$$0' VERSION 2>/dev/null || echo unknown)
BUILD_TIME := $(shell date -u +%Y%m%d.%H%M%S)
BUILD_TAGS := tracer_static tracer_static_jaeger continuous_profiler_stackdriver
-GOBUILD_FLAGS := -ldflags "-X main.Version=$(VERSION_STRING) -X main.BuildTime=$(BUILD_TIME)" -tags "$(BUILD_TAGS)"
+GOBUILD_FLAGS := -ldflags "-X main.Version=$(VERSION_STRING) -X main.BuildTime=$(BUILD_TIME)" -tags "$(BUILD_TAGS)" -mod=mod
PREFIX ?= /usr/local