diff --git a/.ci/bump-golang.yml b/.ci/bump-golang.yml index 412d46aeb4..e6a6777583 100644 --- a/.ci/bump-golang.yml +++ b/.ci/bump-golang.yml @@ -52,18 +52,6 @@ sources: kind: regex pattern: go1\.{{ source "minor" }}\.(\d*)$ - gomod: - dependson: - - latestGoVersion - name: Get version in go.mod format - kind: shell - transformers: - - findsubmatch: - pattern: '^(\d+.\d+).\d+' - captureindex: 1 - spec: - command: echo {{ source "latestGoVersion" }} - conditions: dockerTag: name: Is docker image golang:{{ source "latestGoVersion" }} published @@ -101,10 +89,28 @@ targets: matchpattern: '\d+.\d+.\d+' update-gomod: name: "Update go.mod" - sourceid: gomod + sourceid: latestGoVersion scmid: githubConfig kind: file spec: - content: 'go {{ source "gomod" }}' + content: 'go {{ source "latestGoVersion" }}' file: go.mod - matchpattern: 'go \d+.\d+' + matchpattern: 'go \d+.\d+.\d+' + update-testing-gomod: + name: "Update go.mod" + sourceid: latestGoVersion + scmid: githubConfig + kind: file + spec: + content: 'go {{ source "latestGoVersion" }}' + file: testing/go.mod + matchpattern: 'go \d+.\d+.\d+' + update-dev-tools-gomod: + name: "Update go.mod" + sourceid: latestGoVersion + scmid: githubConfig + kind: file + spec: + content: 'go {{ source "latestGoVersion" }}' + file: dev-tools/go.mod + matchpattern: 'go \d+.\d+.\d+' diff --git a/.go-version b/.go-version index d8c40e539c..ae96cc7310 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.23.6 +1.24.3 diff --git a/.golangci.yml b/.golangci.yml index 7c2429aa20..5db031f8d4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,7 +3,7 @@ run: # timeout for analysis, e.g. 30s, 5m, default is 1m timeout: 1m build-tags: integration - go: "1.23.6" + go: "1.24.3" issues: # Maximum count of issues with the same text. diff --git a/changelog/fragments/1746596216-Update-to-go-1.24.3.yaml b/changelog/fragments/1746596216-Update-to-go-1.24.3.yaml new file mode 100644 index 0000000000..2b122227ae --- /dev/null +++ b/changelog/fragments/1746596216-Update-to-go-1.24.3.yaml @@ -0,0 +1,32 @@ +# Kind can be one of: +# - breaking-change: a change to previously-documented behavior +# - deprecation: functionality that is being removed in a later release +# - bug-fix: fixes a problem in a previous version +# - enhancement: extends functionality but does not break or fix existing behavior +# - feature: new functionality +# - known-issue: problems that we are aware of in a given version +# - security: impacts on the security of a product or a user’s deployment. +# - upgrade: important information for someone upgrading from a prior version +# - other: does not fit into any of the other categories +kind: enhancement + +# Change summary; a 80ish characters long description of the change. +summary: Update go to v1.24.3 + +# Long description; in case the summary is not enough to describe the change +# this field accommodate a description without length limits. +# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. +#description: + +# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc. +component: fleet-server + +# PR URL; optional; the PR number that added the changeset. +# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. +# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. +# Please provide it if you are adding a fragment for a different PR. +pr: https://github.com/elastic/fleet-server/pull/4891 + +# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). +# If not present is automatically filled by the tooling with the issue linked to the PR number. +#issue: https://github.com/owner/repo/1234 diff --git a/go.mod b/go.mod index fb48b6c5c1..3853fe5b23 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/elastic/fleet-server/v7 -go 1.23.0 +go 1.24.3 require ( github.com/Pallinder/go-randomdata v1.2.0 diff --git a/testing/go.mod b/testing/go.mod index 6017bd0a53..d591608b01 100644 --- a/testing/go.mod +++ b/testing/go.mod @@ -1,6 +1,6 @@ module github.com/elastic/fleet-server/testing -go 1.23.0 +go 1.24.3 replace ( github.com/elastic/fleet-server/pkg/api => ../pkg/api