driver: resolve BuildKit version for docker driver

Buildx currently returns the Docker Engine version for the docker driver
and it can be confusing. This is because BuildKit before 0.11 version does
not support the Info API that returns the BuildKit version.

This change resolves the BuildKit version from the Docker engine one.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-11 17:34:20 +01:00
committed by CrazyMax
parent 799715ea24
commit 81d7decd13
17 changed files with 2333 additions and 1 deletions

3
vendor/modules.txt vendored
View File

@@ -30,6 +30,9 @@ github.com/Azure/go-autorest/logger
# github.com/Azure/go-autorest/tracing v0.6.0
## explicit; go 1.12
github.com/Azure/go-autorest/tracing
# github.com/Masterminds/semver/v3 v3.2.0
## explicit; go 1.18
github.com/Masterminds/semver/v3
# github.com/Microsoft/go-winio v0.6.0
## explicit; go 1.17
github.com/Microsoft/go-winio