diff options
author | Craig Miskell <cmiskell@gitlab.com> | 2020-06-19 05:55:41 +0300 |
---|---|---|
committer | Craig Miskell <cmiskell@gitlab.com> | 2020-06-19 05:55:41 +0300 |
commit | d1e1276446ed1af6d2cdb0a7730423b96025de78 (patch) | |
tree | f32e6ac11e3bd20733c0ec26d0e52aba789779ae /Makefile.build.mk | |
parent | 0099e7a37a6d396d81e97b05c961322128b63eeb (diff) |
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
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 4 |
1 files changed, 3 insertions, 1 deletions
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 |