Skip to content

Commit 0c72f45

Browse files
committed
Merge tag 'v29.5.0' into 29.x
v29.5.0
2 parents 26f2736 + 98f1464 commit 0c72f45

119 files changed

Lines changed: 8257 additions & 25604 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ https://github.com/docker/cli/blob/master/CONTRIBUTING.md
44
55
** Make sure all your commits include a signature generated with `git commit -s` **
66
7-
For additional information on our contributing process, read our contributing
8-
guide https://docs.docker.com/opensource/code/
9-
107
If this is a bug fix, make sure your description includes "fixes #xxxx", or
118
"closes #xxxx"
129
@@ -20,6 +17,7 @@ Provide the following information:
2017
**- How to verify it**
2118

2219
**- Human readable description for the release notes**
20+
2321
<!--
2422
Write a short (one line) summary that describes the changes in this
2523
pull request for inclusion in the changelog.
@@ -28,10 +26,9 @@ It must be placed inside the below triple backticks section.
2826
NOTE: Only fill this section if changes introduced in this PR are user-facing.
2927
The PR must have a relevant impact/ label.
3028
-->
31-
```markdown changelog
3229

30+
```markdown changelog
3331

3432
```
3533

3634
**- A picture of a cute animal (not mandatory but encouraged)**
37-

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ jobs:
6363
name: Update Go
6464
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
6565
with:
66-
go-version: "1.26.2"
66+
go-version: "1.26.3"
6767
cache: false
6868
-
6969
name: Initialize CodeQL
70-
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
70+
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
7171
with:
7272
languages: go
7373
-
7474
name: Autobuild
75-
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
75+
uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
7676
-
7777
name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
78+
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
7979
with:
8080
category: "/language:go"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
name: Set up Go
6868
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
6969
with:
70-
go-version: "1.26.2"
70+
go-version: "1.26.3"
7171
cache: false
7272
-
7373
name: Test

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
name: Set up Go
9797
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
9898
with:
99-
go-version: "1.26.2"
99+
go-version: "1.26.3"
100100
cache: false
101101
-
102102
name: Run gocompat check

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ run:
55
# which causes it to fallback to go1.17 semantics.
66
#
77
# TODO(thaJeztah): update "usetesting" settings to enable go1.24 features once our minimum version is go1.24
8-
go: "1.26.2"
8+
go: "1.26.3"
99

1010
timeout: 5m
1111

CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ anybody starts working on it.
6666
We are always thrilled to receive pull requests. We do our best to process them
6767
quickly. If your pull request is not accepted on the first try,
6868
don't get discouraged! Our contributor's guide explains [the review process we
69-
use for simple changes](https://github.com/docker/docker/blob/master/project/REVIEWING.md).
69+
use for simple changes](https://github.com/moby/moby/blob/master/project/REVIEWING.md).
7070

7171
### Talking to other Docker users and contributors
7272

@@ -124,8 +124,7 @@ submitting a pull request.
124124
Update the documentation when creating or modifying features. Test your
125125
documentation changes for clarity, concision, and correctness, as well as a
126126
clean documentation build. See our contributors guide for [our style
127-
guide](https://docs.docker.com/contribute/style/grammar/) and instructions on [building
128-
the documentation](https://docs.docker.com/contribute/).
127+
guide](https://github.com/docker/docs/blob/main/STYLE.md).
129128

130129
Write clean code. Universally formatted code promotes ease of writing, reading,
131130
and maintenance. Always run `gofmt -s -w file.go` on each changed file before
@@ -145,6 +144,7 @@ not enforced. Common prefixes are `docs: <message>`, `vendor: <message>`,
145144
or `telemetry: <message>`.
146145

147146
A standard commit.
147+
148148
```
149149
Fix the exploding flux capacitor
150150
@@ -153,19 +153,22 @@ the sun and the moon align.
153153
```
154154

155155
Using a package as prefix.
156+
156157
```
157158
pkg/foo: prevent panic in flux capacitor
158159
159160
Calling function A causes the flux capacitor to blow up every time
160161
the sun and the moon align.
161162
```
162163

163-
Updating a specific vendored package.
164+
Updating a specific vendored dependency.
165+
164166
```
165-
vendor: github.com/docker/docker 6ac445c42bad (master, v28.0-dev)
167+
vendor: github.com/moby/moby/client v0.4.0
166168
```
167169

168170
Fixing a broken docs link.
171+
169172
```
170173
docs: fix style/lint issues in deprecated.md
171174
```

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG BASE_VARIANT=alpine
88
ARG ALPINE_VERSION=3.23
99
ARG BASE_DEBIAN_DISTRO=bookworm
1010

11-
ARG GO_VERSION=1.26.2
11+
ARG GO_VERSION=1.26.3
1212

1313
# XX_VERSION specifies the version of the xx utility to use.
1414
# It must be a valid tag in the docker.io/tonistiigi/xx image repository.

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ Run test:
5151
docker buildx bake test
5252
```
5353

54+
Run the unit test:
55+
56+
```
57+
$ make -f docker.Makefile test-unit
58+
```
59+
60+
Run the full test suite:
61+
62+
```
63+
$ make -f docker.Makefile test
64+
```
65+
5466
List all the available targets:
5567

5668
```shell
@@ -62,7 +74,7 @@ make help
6274
Start an interactive development environment:
6375

6476
```shell
65-
make -f docker.Makefile shell
77+
make shell
6678
```
6779

6880
## Legal

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
29.4.1
1+
29.5.0

cli-plugins/hooks/template.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/spf13/cobra"
1414
)
1515

16+
const maxMessages = 10
17+
1618
func ParseTemplate(hookTemplate string, cmd *cobra.Command) ([]string, error) {
1719
out := hookTemplate
1820
if strings.Contains(hookTemplate, "{{") {
@@ -38,7 +40,10 @@ func ParseTemplate(hookTemplate string, cmd *cobra.Command) ([]string, error) {
3840
}
3941
out = b.String()
4042
}
41-
return strings.Split(out, "\n"), nil
43+
if n := strings.Count(out, "\n"); n > maxMessages {
44+
return nil, fmt.Errorf("hook template contains too many messages (%d): maximum is %d", n, maxMessages)
45+
}
46+
return strings.SplitN(out, "\n", maxMessages), nil
4247
}
4348

4449
var ErrHookTemplateParse = errors.New("failed to parse hook template")

0 commit comments

Comments
 (0)