From: Tian Yuanhao Date: Wed, 16 Dec 2020 08:00:08 +0000 (-0800) Subject: package/docker-containerd: fix version output ldflags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8107509a1d1994321ed681b00b7185ae1dc898fa;p=buildroot.git 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 --- 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