package/docker-cli: fix version info since move to 19.03.x
PATCH 1/1 package/docker-cli: fix version info since move to 19.03.x
Upstream changed the variables used when outputting version / git commit info in docker version since:
commit 04b5f44230162de40741acaa0f94c7af6f2fa1d5
Author: Ian Campbell <[email protected]>
Date: Tue Jan 8 15:03:51 2019 +0000
Move versioning variables to a separate package.
This helps to avoid circular includes, by separating the pure data out from the actual functionality in the cli subpackage, allowing other code which is imported to access the data.
Upstream-commit: 20c19830a95455e8562551aad52c715ad0807cc6
Component: cli
Which is included in docker-cli 19.3.x - So adjust the _CLI_LDFLAGS to match to get proper docker version output:
Client:
Version: 19.03.11 API version: 1.40 Go version: go1.13.14 Git commit: 19.03.11
vs:
Client:
Version: unknown-version API version: 1.40 Go version: go1.13.14 Git commit: unknown-commit
--- package/docker-cli/docker-cli.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/docker-cli/docker-cli.mk +2 -2
@@ -17,8 +17,8 @@ DOCKER_CLI_TAGS = autogen DOCKER_CLI_BUILD_TARGETS = cmd/docker DOCKER_CLI_LDFLAGS = \ - -X github.com/docker/cli/cli.GitCommit=$(DOCKER_CLI_VERSION) \ - -X github.com/docker/cli/cli.Version=$(DOCKER_CLI_VERSION) + -X github.com/docker/cli/cli/version.GitCommit=$(DOCKER_CLI_VERSION) \ + -X github.com/docker/cli/cli/version.Version=$(DOCKER_CLI_VERSION) ifeq ($(BR2_PACKAGE_DOCKER_CLI_STATIC),y) DOCKER_CLI_LDFLAGS += -extldflags '-static'
Signature · 1 line
2.20.1
PATCH 1/1 package/docker-cli: fix version info since move to 19.03.x
Quoted 30 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Upstream changed the variables used when outputting version / git commit info in docker version since:
commit
04b5f44230162de40741acaa0f94c7af6f2fa1d5
Author: Ian Campbell <[email protected]>
Date: Tue Jan 8 15:03:51 2019 +0000Move versioning variables to a separate package.
This helps to avoid circular includes, by separating the pure data out from the actual functionality in the cli subpackage, allowing other code which is imported to access the data.
Signed-off-by Ian Campbell <[email protected]>Upstream-commit:
20c19830a95455e8562551aad52c715ad0807cc6
Component: cliWhich is included in docker-cli 19.3.x - So adjust the
_CLI_LDFLAGSto match to get proper docker version output:Client:
Version: 19.03.11 API version: 1.40 Go version: go1.13.14 Git commit: 19.03.11vs:
Quoted 7 lines
Client:
Version: unknown-version API version: 1.40 Go version: go1.13.14 Git commit: unknown-commitSigned-off-by Peter Korsgaard <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/docker-cli: fix version info since move to 19.03.x
In reply to Peter KorsgaardQuoted 30 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Upstream changed the variables used when outputting version / git commit info in docker version since:
commit
04b5f44230162de40741acaa0f94c7af6f2fa1d5
Author: Ian Campbell <[email protected]>
Date: Tue Jan 8 15:03:51 2019 +0000Move versioning variables to a separate package.
This helps to avoid circular includes, by separating the pure data out from the actual functionality in the cli subpackage, allowing other code which is imported to access the data.
Signed-off-by Ian Campbell <[email protected]>Upstream-commit:
20c19830a95455e8562551aad52c715ad0807cc6
Component: cliWhich is included in docker-cli 19.3.x - So adjust the
_CLI_LDFLAGSto match to get proper docker version output:Client:
Version: 19.03.11 API version: 1.40 Go version: go1.13.14 Git commit: 19.03.11vs:
Quoted 7 lines
Client:
Version: unknown-version API version: 1.40 Go version: go1.13.14 Git commit: unknown-commitSigned-off-by Peter Korsgaard <[email protected]>
Committed to 2020.02.x and 2020.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard