From d1e1276446ed1af6d2cdb0a7730423b96025de78 Mon Sep 17 00:00:00 2001 From: Craig Miskell Date: Fri, 19 Jun 2020 14:55:41 +1200 Subject: Set the continuous_profiler_stackdriver build tag To enable continuous profiling, we need the tag to be set, otherwise the null profiler gets included instead, and it does nothing. See https://gitlab.com/gitlab-org/labkit/blob/master/monitoring/null_profiler.go#L1 and https://gitlab.com/gitlab-org/labkit/blob/master/monitoring/profiler.go#L1 --- Makefile.build.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.build.mk') diff --git a/Makefile.build.mk b/Makefile.build.mk index 9cfcf69b..10a1a80f 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -1,5 +1,7 @@ GOLANGCI_LINT_VERSION := v1.27.0 # version used by $GOLANGCI_LINT_IMAGE +GO_BUILD_TAGS := continuous_profiler_stackdriver + .PHONY: all setup generate-mocks build clean all: gitlab-pages @@ -13,7 +15,7 @@ generate-mocks: .GOPATH/.ok $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks build: .GOPATH/.ok - $Q go install $(if $V,-v) $(VERSION_FLAGS) -buildmode exe $(IMPORT_PATH) + $Q go install $(if $V,-v) $(VERSION_FLAGS) -tags "${GO_BUILD_TAGS}" -buildmode exe $(IMPORT_PATH) clean: $Q rm -rf bin .GOPATH gitlab-pages -- cgit v1.2.3