package/docker-containerd: fix version output ldflags
authorTian Yuanhao <tianyuanhao@aliyun.com>
Wed, 16 Dec 2020 08:00:08 +0000 (00:00 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 30 Dec 2020 08:25:43 +0000 (09:25 +0100)
Fix the ldflags specifying the version info for "version" command.

Signed-off-by: Tian Yuanhao <tianyuanhao@aliyun.com>
Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/docker-containerd/docker-containerd.mk

index c68e3818a8a95c193bd50954ca90f7d1b9ef64de..2eed6e346b78b99e92d8652a998eb4a939b2f358 100644 (file)
@@ -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