Merge pull request #3925 from thaJeztah/fix_warning_typo

cmd/docker: fix typo in deprecation warning
This commit is contained in:
Sebastiaan van Stijn 2022-12-19 13:57:00 +01:00 коммит произвёл GitHub
Родитель 9a5d5aefb8 06eba426d7
Коммит 378c92d758
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -21,7 +21,7 @@ const (
https://docs.docker.com/go/buildx/`
buildkitDisabledWarning = `DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enabled it by removing the DOCKER_BUILDKIT=0
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.`
buildxMissingError = `ERROR: BuildKit is enabled but the buildx component is missing or broken.

Просмотреть файл

@ -155,7 +155,7 @@ func TestBuildkitDisabled(t *testing.T) {
output.Assert(t, b.String(), map[int]func(string) error{
0: output.Suffix("DEPRECATED: The legacy builder is deprecated and will be removed in a future release."),
1: output.Suffix("BuildKit is currently disabled; enabled it by removing the DOCKER_BUILDKIT=0"),
1: output.Suffix("BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0"),
})
}

Просмотреть файл

@ -37,7 +37,7 @@ func TestBuildFromContextDirectoryWithTag(t *testing.T) {
defer icmd.RunCommand("docker", "image", "rm", "myimage")
const buildkitDisabledWarning = `DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enabled it by removing the DOCKER_BUILDKIT=0
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
`