Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Fargher <jfargher@gitlab.com>2023-03-15 01:57:57 +0300
committerJames Fargher <jfargher@gitlab.com>2023-03-16 23:47:38 +0300
commitaa269afa0b3f37c13fb41da668c9b5f9e2635104 (patch)
tree75727c8c369d960b8c9d7451ab89861b684e3239
parent61f6d11a9f675127a8a98b15b4d96d74df0f258b (diff)
make: Use go to interrogate current gitaly module version
Using a hardcoded package path would mean that this has to be manually updated when the gitaly major version is upgraded.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e31ff4ec1..28ee4e1e2 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ GOLANGCI_LINT_OPTIONS ?=
GOLANGCI_LINT_CONFIG ?= ${SOURCE_DIR}/.golangci.yml
# Build information
-GITALY_PACKAGE := gitlab.com/gitlab-org/gitaly/v15
+GITALY_PACKAGE := $(shell go list -m)
GITALY_VERSION := $(shell ${GIT} describe --match v* 2>/dev/null | sed 's/^v//' || cat ${SOURCE_DIR}/VERSION 2>/dev/null || echo unknown)
GO_LDFLAGS := -X ${GITALY_PACKAGE}/internal/version.version=${GITALY_VERSION}
SERVER_BUILD_TAGS := tracer_static,tracer_static_jaeger,tracer_static_stackdriver,continuous_profiler_stackdriver