From: Christian Stewart Date: Mon, 31 Aug 2020 01:07:54 +0000 (-0700) Subject: package/docker-cli: fix version ldflags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a262b4054e2c25d6c6009948bb35a2f6f4e276a;p=buildroot.git package/docker-cli: fix version ldflags The variables for the "docker version" output are located at $(DOCKER_CLI_GOMOD)/cli/version - correct the path to these in the ldflags to fix the following "unknown" lines in "docker version" output: Client: Version: unknown-version Git commit: unknown-commit Built: unknown-buildtime Signed-off-by: Christian Stewart Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/package/docker-cli/docker-cli.mk b/package/docker-cli/docker-cli.mk index fd96ff9f35..8607425efa 100644 --- a/package/docker-cli/docker-cli.mk +++ b/package/docker-cli/docker-cli.mk @@ -17,8 +17,8 @@ DOCKER_CLI_BUILD_TARGETS = cmd/docker DOCKER_CLI_GOMOD = github.com/docker/cli DOCKER_CLI_LDFLAGS = \ - -X $(DOCKER_CLI_GOMOD)/cli.GitCommit=$(DOCKER_CLI_VERSION) \ - -X $(DOCKER_CLI_GOMOD)/cli.Version=$(DOCKER_CLI_VERSION) + -X $(DOCKER_CLI_GOMOD)/cli/version.GitCommit=$(DOCKER_CLI_VERSION) \ + -X $(DOCKER_CLI_GOMOD)/cli/version.Version=$(DOCKER_CLI_VERSION) ifeq ($(BR2_PACKAGE_DOCKER_CLI_STATIC),y) DOCKER_CLI_LDFLAGS += -extldflags '-static'