Skip to content

Commit a2092c7

Browse files
pkoutsovasilismergify[bot]
authored andcommitted
Update to go 1.24.3 (#4891)
* chore: bump to go 1.24.3 (cherry picked from commit 9dd0054) # Conflicts: # .ci/bump-golang.yml # dev-tools/go.mod # go.mod # testing/go.mod
1 parent 46bd1b0 commit a2092c7

File tree

5 files changed

+288
-0
lines changed

5 files changed

+288
-0
lines changed

.ci/bump-golang.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
name: Bump golang-version to latest version
3+
pipelineid: 'bump-golang-main'
4+
5+
scms:
6+
githubConfig:
7+
kind: github
8+
spec:
9+
user: '{{ requiredEnv "GIT_USER" }}'
10+
email: '{{ requiredEnv "GIT_EMAIL" }}'
11+
owner: elastic
12+
repository: fleet-server
13+
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
14+
username: '{{ requiredEnv "GIT_USER" }}'
15+
branch: main
16+
17+
actions:
18+
fleet-server:
19+
kind: github/pullrequest
20+
scmid: githubConfig
21+
sourceid: latestGoVersion
22+
spec:
23+
automerge: false
24+
labels:
25+
- dependencies
26+
- backport-skip
27+
title: '[Automation] Bump Golang version to {{ source "latestGoVersion" }}'
28+
29+
sources:
30+
minor:
31+
name: Get minor version in .go-version
32+
kind: shell
33+
transformers:
34+
- findsubmatch:
35+
pattern: '^\d+.(\d+).\d+$'
36+
captureindex: 1
37+
spec:
38+
command: cat .go-version
39+
40+
latestGoVersion:
41+
name: Get Latest Go Release
42+
kind: githubrelease
43+
dependson:
44+
- minor
45+
transformers:
46+
- trimprefix: go
47+
spec:
48+
owner: golang
49+
repository: go
50+
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
51+
username: '{{ requiredEnv "GIT_USER" }}'
52+
versionfilter:
53+
kind: regex
54+
pattern: go1\.{{ source "minor" }}\.(\d*)$
55+
56+
conditions:
57+
dockerTag:
58+
name: Is docker image golang:{{ source "latestGoVersion" }} published
59+
kind: dockerimage
60+
spec:
61+
image: golang
62+
tag: '{{ source "latestGoVersion" }}'
63+
sourceid: latestGoVersion
64+
65+
goDefaultVersion-check:
66+
name: Check if defined golang version differs
67+
kind: shell
68+
sourceid: latestGoVersion
69+
spec:
70+
command: 'grep -v -q {{ source "latestGoVersion" }} .go-version #'
71+
72+
targets:
73+
update-go-version:
74+
name: "Update .go-version"
75+
sourceid: latestGoVersion
76+
scmid: githubConfig
77+
kind: file
78+
spec:
79+
content: '{{ source "latestGoVersion" }}'
80+
file: .go-version
81+
matchpattern: '\d+.\d+.\d+'
82+
update-golang.ci:
83+
name: "Update .golangci.yml"
84+
sourceid: latestGoVersion
85+
scmid: githubConfig
86+
kind: file
87+
spec:
88+
content: '{{ source "latestGoVersion" }}'
89+
file: .golangci.yml
90+
matchpattern: '\d+.\d+.\d+'
91+
update-gomod:
92+
name: "Update go.mod"
93+
sourceid: latestGoVersion
94+
scmid: githubConfig
95+
kind: file
96+
spec:
97+
content: 'go {{ source "latestGoVersion" }}'
98+
file: go.mod
99+
matchpattern: 'go \d+.\d+.\d+'
100+
update-testing-gomod:
101+
name: "Update go.mod"
102+
sourceid: latestGoVersion
103+
scmid: githubConfig
104+
kind: file
105+
spec:
106+
content: 'go {{ source "latestGoVersion" }}'
107+
file: testing/go.mod
108+
matchpattern: 'go \d+.\d+.\d+'
109+
update-dev-tools-gomod:
110+
name: "Update go.mod"
111+
sourceid: latestGoVersion
112+
scmid: githubConfig
113+
kind: file
114+
spec:
115+
content: 'go {{ source "latestGoVersion" }}'
116+
file: dev-tools/go.mod
117+
matchpattern: 'go \d+.\d+.\d+'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: enhancement
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Update go to v1.24.3
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: fleet-server
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/fleet-server/pull/4891
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

dev-tools/go.mod

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module github.com/elastic/fleet-server/dev-tools
2+
3+
go 1.24.3
4+
5+
tool (
6+
github.com/elastic/go-json-schema-generate/cmd/schema-generate
7+
github.com/elastic/go-licenser
8+
github.com/jstemmer/go-junit-report
9+
github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
10+
go.elastic.co/go-licence-detector
11+
golang.org/x/perf/cmd/benchstat
12+
)
13+
14+
require github.com/elastic/elastic-agent-libs v0.18.12
15+
16+
require (
17+
github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794 // indirect
18+
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
19+
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
20+
github.com/elastic/go-json-schema-generate v0.0.0-20220323152209-ec19b88f6b5e // indirect
21+
github.com/elastic/go-licenser v0.4.2 // indirect
22+
github.com/elastic/go-ucfg v0.8.5 // indirect
23+
github.com/elastic/pkcs8 v1.0.0 // indirect
24+
github.com/getkin/kin-openapi v0.131.0 // indirect
25+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
26+
github.com/go-openapi/swag v0.23.0 // indirect
27+
github.com/google/licenseclassifier v0.0.0-20200402202327-879cb1424de0 // indirect
28+
github.com/josharian/intern v1.0.0 // indirect
29+
github.com/jstemmer/go-junit-report v1.0.0 // indirect
30+
github.com/mailru/easyjson v0.7.7 // indirect
31+
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
32+
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 // indirect
33+
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect
34+
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect
35+
github.com/perimeterx/marshmallow v1.1.5 // indirect
36+
github.com/pkg/errors v0.9.1 // indirect
37+
github.com/sergi/go-diff v1.1.0 // indirect
38+
github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect
39+
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
40+
go.elastic.co/ecszap v1.0.2 // indirect
41+
go.elastic.co/go-licence-detector v0.7.0 // indirect
42+
go.uber.org/multierr v1.11.0 // indirect
43+
go.uber.org/zap v1.27.0 // indirect
44+
golang.org/x/crypto v0.36.0 // indirect
45+
golang.org/x/mod v0.20.0 // indirect
46+
golang.org/x/perf v0.0.0-20250305200902-02a15fd477ba // indirect
47+
golang.org/x/sync v0.12.0 // indirect
48+
golang.org/x/sys v0.31.0 // indirect
49+
golang.org/x/text v0.23.0 // indirect
50+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
51+
gopkg.in/yaml.v2 v2.4.0 // indirect
52+
gopkg.in/yaml.v3 v3.0.1 // indirect
53+
)

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module github.com/elastic/fleet-server/v7
22

3+
<<<<<<< HEAD
34
go 1.23.0
5+
=======
6+
go 1.24.3
7+
>>>>>>> 9dd0054 (Update to go 1.24.3 (#4891))
48

59
require (
610
github.com/Pallinder/go-randomdata v1.2.0

testing/go.mod

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
module github.com/elastic/fleet-server/testing
2+
3+
go 1.24.3
4+
5+
replace (
6+
github.com/elastic/fleet-server/pkg/api => ../pkg/api
7+
github.com/elastic/fleet-server/v7 => ../
8+
)
9+
10+
require (
11+
github.com/Shopify/toxiproxy/v2 v2.12.0
12+
github.com/docker/docker v28.1.1+incompatible
13+
github.com/elastic/elastic-agent-client/v7 v7.17.2
14+
github.com/elastic/fleet-server/pkg/api v0.0.0-00010101000000-000000000000
15+
github.com/elastic/fleet-server/v7 v7.0.0-00010101000000-000000000000
16+
github.com/stretchr/testify v1.10.0
17+
github.com/testcontainers/testcontainers-go v0.37.0
18+
github.com/testcontainers/testcontainers-go/modules/toxiproxy v0.37.0
19+
)
20+
21+
require (
22+
dario.cat/mergo v1.0.1 // indirect
23+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
24+
github.com/Microsoft/go-winio v0.6.2 // indirect
25+
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
26+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
27+
github.com/containerd/log v0.1.0 // indirect
28+
github.com/containerd/platforms v0.2.1 // indirect
29+
github.com/cpuguy83/dockercfg v0.3.2 // indirect
30+
github.com/davecgh/go-spew v1.1.1 // indirect
31+
github.com/distribution/reference v0.6.0 // indirect
32+
github.com/docker/go-connections v0.5.0 // indirect
33+
github.com/docker/go-units v0.5.0 // indirect
34+
github.com/ebitengine/purego v0.8.2 // indirect
35+
github.com/elastic/elastic-agent-libs v0.19.5 // indirect
36+
github.com/felixge/httpsnoop v1.0.4 // indirect
37+
github.com/go-logr/logr v1.4.2 // indirect
38+
github.com/go-logr/stdr v1.2.2 // indirect
39+
github.com/go-ole/go-ole v1.3.0 // indirect
40+
github.com/gogo/protobuf v1.3.2 // indirect
41+
github.com/google/uuid v1.6.0 // indirect
42+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.25.1 // indirect
43+
github.com/klauspost/compress v1.18.0 // indirect
44+
github.com/lufia/plan9stats v0.0.0-20250317134145-8bc96cf8fc35 // indirect
45+
github.com/magiconair/properties v1.8.10 // indirect
46+
github.com/mattn/go-colorable v0.1.14 // indirect
47+
github.com/moby/docker-image-spec v1.3.1 // indirect
48+
github.com/moby/go-archive v0.1.0 // indirect
49+
github.com/moby/patternmatcher v0.6.0 // indirect
50+
github.com/moby/sys/atomicwriter v0.1.0 // indirect
51+
github.com/moby/sys/sequential v0.6.0 // indirect
52+
github.com/moby/sys/user v0.4.0 // indirect
53+
github.com/moby/sys/userns v0.1.0 // indirect
54+
github.com/moby/term v0.5.2 // indirect
55+
github.com/morikuni/aec v1.0.0 // indirect
56+
github.com/oapi-codegen/runtime v1.1.1 // indirect
57+
github.com/opencontainers/go-digest v1.0.0 // indirect
58+
github.com/opencontainers/image-spec v1.1.1 // indirect
59+
github.com/pkg/errors v0.9.1 // indirect
60+
github.com/pmezard/go-difflib v1.0.0 // indirect
61+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
62+
github.com/prometheus/procfs v0.16.1 // indirect
63+
github.com/shirou/gopsutil/v4 v4.25.3 // indirect
64+
github.com/sirupsen/logrus v1.9.3 // indirect
65+
github.com/tklauser/go-sysconf v0.3.15 // indirect
66+
github.com/tklauser/numcpus v0.10.0 // indirect
67+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
68+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
69+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
70+
go.opentelemetry.io/otel v1.35.0 // indirect
71+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
72+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
73+
golang.org/x/crypto v0.37.0 // indirect
74+
golang.org/x/net v0.38.0 // indirect
75+
golang.org/x/sys v0.32.0 // indirect
76+
golang.org/x/text v0.24.0 // indirect
77+
google.golang.org/genproto/googleapis/api v0.0.0-20250407143221-ac9807e6c755 // indirect
78+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250407143221-ac9807e6c755 // indirect
79+
google.golang.org/grpc v1.72.1 // indirect
80+
google.golang.org/protobuf v1.36.6 // indirect
81+
gopkg.in/yaml.v3 v3.0.1 // indirect
82+
)

0 commit comments

Comments
 (0)