From 8107509a1d1994321ed681b00b7185ae1dc898fa Mon Sep 17 00:00:00 2001 From: Tian Yuanhao Date: Wed, 16 Dec 2020 00:00:08 -0800 Subject: [PATCH] package/docker-containerd: fix version output ldflags Fix the ldflags specifying the version info for "version" command. Signed-off-by: Tian Yuanhao Signed-off-by: Christian Stewart Signed-off-by: Thomas Petazzoni --- package/docker-containerd/docker-containerd.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/docker-containerd/docker-containerd.mk b/package/docker-containerd/docker-containerd.mk index c68e3818a8..2eed6e346b 100644 --- a/package/docker-containerd/docker-containerd.mk +++ b/package/docker-containerd/docker-containerd.mk @@ -12,7 +12,7 @@ DOCKER_CONTAINERD_LICENSE_FILES = LICENSE DOCKER_CONTAINERD_GOMOD = github.com/containerd/containerd DOCKER_CONTAINERD_LDFLAGS = \ - -X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION) + -X $(DOCKER_CONTAINERD_GOMOD)/version.Version=$(DOCKER_CONTAINERD_VERSION) DOCKER_CONTAINERD_BUILD_TARGETS = cmd/ctr cmd/containerd cmd/containerd-shim -- 2.30.2