Skip to content

Commit 976b648

Browse files
committed
update go to 1.24
Signed-off-by: CrazyMax <[email protected]>
1 parent fb3f0a0 commit 976b648

File tree

6 files changed

+54
-6
lines changed

6 files changed

+54
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
name: Set up Go
6666
uses: actions/setup-go@v5
6767
with:
68-
go-version: "1.23"
68+
go-version: "1.24"
6969
-
7070
name: Download modules
7171
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
ARG GO_VERSION="1.23"
17+
ARG GO_VERSION="1.24"
1818
ARG XX_VERSION="1.6.1"
1919
ARG GOLANGCI_LINT_VERSION="v2.1.5"
2020
ARG ADDLICENSE_VERSION="v1.1.1"

clidocstool_yaml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ func genFlagResult(cmd *cobra.Command, flags *pflag.FlagSet, anchors map[string]
352352
//
353353
// This makes the generated YAML more readable, and easier to review changes.
354354
// max can be used to customize the width to keep the whole line < 80 chars.
355-
func forceMultiLine(s string, max int) string {
355+
func forceMultiLine(s string, maxWidth int) string {
356356
s = strings.TrimSpace(s)
357-
if len(s) > max && !strings.Contains(s, "\n") {
357+
if len(s) > maxWidth && !strings.Contains(s, "\n") {
358358
s = s + "\n"
359359
}
360360
return s

example/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/docker/cli-docs-tool/example
22

3-
go 1.20
3+
go 1.23.0
44

55
require (
66
github.com/docker/buildx v0.11.2

0 commit comments

Comments
 (0)