mirror of
https://github.com/docker/cli.git
synced 2025-04-18 19:24:03 +03:00
full diff: https://github.com/golang/go/compare/go1.23.7...go1.23.8 release notes: https://go.dev/doc/devel/release#go1.24.2 go1.23.8 (released 2025-04-01) includes security fixes to the net/http package, as well as bug fixes to the runtime and the go command. See the Go 1.23.8 milestone on our issue tracker for details; https://github.com/golang/go/issues?q=milestone%3AGo1.23.8+label%3ACherryPickApproved From the mailing list: Hello gophers, We have just released Go versions 1.24.2 and 1.23.8, minor point releases. These minor releases include 1 security fixes following the security policy: - net/http: request smuggling through invalid chunked data The net/http package accepted data in the chunked transfer encoding containing an invalid chunk-size line terminated by a bare LF. When used in conjunction with a server or proxy which incorrectly interprets a bare LF in a chunk extension as part of the extension, this could permit request smuggling. The net/http package now rejects chunk-size lines containing a bare LF. Thanks to Jeppe Bonde Weikop for reporting this issue. This is CVE-2025-22871 and Go issue https://go.dev/issue/71988. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
198 lines
3.8 KiB
HCL
198 lines
3.8 KiB
HCL
variable "GO_VERSION" {
|
|
default = "1.23.8"
|
|
}
|
|
variable "VERSION" {
|
|
default = ""
|
|
}
|
|
variable "USE_GLIBC" {
|
|
default = ""
|
|
}
|
|
variable "STRIP_TARGET" {
|
|
default = ""
|
|
}
|
|
variable "IMAGE_NAME" {
|
|
default = "docker-cli"
|
|
}
|
|
|
|
# Sets the name of the company that produced the windows binary.
|
|
variable "PACKAGER_NAME" {
|
|
default = ""
|
|
}
|
|
|
|
target "_common" {
|
|
args = {
|
|
GO_VERSION = GO_VERSION
|
|
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
|
}
|
|
}
|
|
|
|
target "_platforms" {
|
|
platforms = [
|
|
"darwin/amd64",
|
|
"darwin/arm64",
|
|
"linux/amd64",
|
|
"linux/arm/v6",
|
|
"linux/arm/v7",
|
|
"linux/arm64",
|
|
"linux/ppc64le",
|
|
"linux/riscv64",
|
|
"linux/s390x",
|
|
"windows/amd64",
|
|
"windows/arm64"
|
|
]
|
|
}
|
|
|
|
group "default" {
|
|
targets = ["binary"]
|
|
}
|
|
|
|
target "binary" {
|
|
inherits = ["_common"]
|
|
target = "binary"
|
|
platforms = ["local"]
|
|
output = ["build"]
|
|
args = {
|
|
BASE_VARIANT = USE_GLIBC == "1" ? "debian" : "alpine"
|
|
VERSION = VERSION
|
|
PACKAGER_NAME = PACKAGER_NAME
|
|
GO_STRIP = STRIP_TARGET
|
|
}
|
|
}
|
|
|
|
target "dynbinary" {
|
|
inherits = ["binary"]
|
|
args = {
|
|
GO_LINKMODE = "dynamic"
|
|
}
|
|
}
|
|
|
|
target "plugins" {
|
|
inherits = ["_common"]
|
|
target = "plugins"
|
|
platforms = ["local"]
|
|
output = ["build"]
|
|
args = {
|
|
BASE_VARIANT = USE_GLIBC == "1" ? "debian" : "alpine"
|
|
VERSION = VERSION
|
|
GO_STRIP = STRIP_TARGET
|
|
}
|
|
}
|
|
|
|
target "cross" {
|
|
inherits = ["binary", "_platforms"]
|
|
}
|
|
|
|
target "dynbinary-cross" {
|
|
inherits = ["dynbinary", "_platforms"]
|
|
}
|
|
|
|
target "plugins-cross" {
|
|
inherits = ["plugins", "_platforms"]
|
|
}
|
|
|
|
target "lint" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.lint"
|
|
target = "lint"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "shellcheck" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.shellcheck"
|
|
target = "shellcheck"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "validate-vendor" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.vendor"
|
|
target = "validate"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "update-vendor" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.vendor"
|
|
target = "update"
|
|
output = ["."]
|
|
}
|
|
|
|
target "mod-outdated" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.vendor"
|
|
target = "outdated"
|
|
no-cache-filter = ["outdated"]
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "validate-authors" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.authors"
|
|
target = "validate"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "update-authors" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./dockerfiles/Dockerfile.authors"
|
|
target = "update"
|
|
output = ["."]
|
|
}
|
|
|
|
target "test" {
|
|
inherits = ["_common"]
|
|
target = "test"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "test-coverage" {
|
|
inherits = ["_common"]
|
|
target = "test-coverage"
|
|
output = ["build/coverage"]
|
|
}
|
|
|
|
target "e2e-image" {
|
|
inherits = ["_common"]
|
|
target = "e2e"
|
|
output = ["type=docker"]
|
|
tags = ["${IMAGE_NAME}"]
|
|
args = {
|
|
BASE_VARIANT = USE_GLIBC == "1" ? "debian" : "alpine"
|
|
VERSION = VERSION
|
|
}
|
|
}
|
|
|
|
target "e2e-gencerts" {
|
|
inherits = ["_common"]
|
|
dockerfile = "./e2e/testdata/Dockerfile.gencerts"
|
|
output = ["./e2e/testdata"]
|
|
}
|
|
|
|
target "docker-metadata-action" {
|
|
tags = ["cli-bin:local"]
|
|
}
|
|
|
|
target "bin-image" {
|
|
inherits = ["binary", "docker-metadata-action"]
|
|
target = "bin-image"
|
|
output = ["type=docker"]
|
|
}
|
|
|
|
target "bin-image-cross" {
|
|
inherits = ["bin-image"]
|
|
output = ["type=image"]
|
|
platforms = [
|
|
"darwin/amd64",
|
|
"darwin/arm64",
|
|
"linux/amd64",
|
|
"linux/arm/v6",
|
|
"linux/arm/v7",
|
|
"linux/arm64",
|
|
"linux/ppc64le",
|
|
"linux/s390x",
|
|
"windows/amd64",
|
|
"windows/arm64"
|
|
]
|
|
}
|