Skip to content

Commit 42c0918

Browse files
authored
Update Go runtime to 1.24.5 (#2057)
* Update Go runtime to 1.24.5 * Update golangci-lint to 1.64.8 to support Go 1.24 and remove deactivated linters * remove golangci-lint warning due to version bump * fix lint errors * Update licenses
1 parent 6c9681f commit 42c0918

File tree

18 files changed

+31
-35
lines changed

18 files changed

+31
-35
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/go:dev-1.23",
2+
"image": "mcr.microsoft.com/devcontainers/go:dev-1.24",
33
"features": {
44
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
55
},

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build
22
env:
3-
GO_VERSION: 1.23.10
3+
GO_VERSION: 1.24.5
44
on:
55
push:
66
# Permission forced by repo-level setting; only elevate on job-level

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
# packages: read
77
env:
88
PROJECTNAME: "datadog-operator"
9-
GO_VERSION: 1.23.10
9+
GO_VERSION: 1.24.5
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
contents: read
1212
# packages: read
1313
env:
14-
GO_VERSION: 1.23.10
14+
GO_VERSION: 1.24.5
1515
jobs:
1616
build-linux-binary:
1717
if: startsWith(github.ref, 'refs/tags/v')

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: registry.ddbuild.io/images/mirror/library/golang:1.23.10
1+
image: registry.ddbuild.io/images/mirror/library/golang:1.24.5
22
variables:
33
PROJECTNAME: "datadog-operator"
44
PROJECTNAME_CHECK: "datadog-operator-check"

.golangci.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,17 @@
4444
enable-all = true
4545
disable = [
4646
"exhaustruct",
47-
"exportloopref",
4847
"nonamedreturns",
4948
"revive",
5049
"lll",
5150
"gosec",
5251
"dupl",
53-
"execinquery",
5452
"gocyclo",
5553
"gochecknoinits",
5654
"gochecknoglobals",
5755
"funlen",
5856
"gocognit",
5957
"cyclop",
60-
"gomnd",
6158
"wrapcheck",
6259
"forcetypeassert",
6360
"err113",
@@ -103,7 +100,8 @@
103100
"dupword",
104101
"intrange",
105102
"mnd",
106-
"musttag"
103+
"musttag",
104+
"tenv"
107105
]
108106

109107
[issues]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ARG FIPS_ENABLED=false
33

44
# Build the manager binary
5-
FROM golang:1.23.10 AS builder
5+
FROM golang:1.24.5 AS builder
66

77
WORKDIR /workspace
88
# Copy the Go Modules manifests

LICENSE-3rdparty.csv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ core,github.com/cespare/xxhash/v2,MIT
4242
core,github.com/cihub/seelog,BSD-3-Clause
4343
core,github.com/davecgh/go-spew/spew,ISC
4444
core,github.com/dustin/go-humanize,MIT
45-
core,github.com/ebitengine/purego,Apache-2.0
4645
core,github.com/emicklei/go-restful/v3,MIT
4746
core,github.com/evanphx/json-patch/v5,BSD-3-Clause
4847
core,github.com/felixge/httpsnoop,MIT
@@ -122,7 +121,7 @@ core,go.opentelemetry.io/proto/otlp,Apache-2.0
122121
core,go.uber.org/atomic,MIT
123122
core,go.uber.org/multierr,MIT
124123
core,go.uber.org/zap,MIT
125-
core,golang.org/x/exp,BSD-3-Clause
124+
core,golang.org/x/exp/slices,BSD-3-Clause
126125
core,golang.org/x/mod/semver,BSD-3-Clause
127126
core,golang.org/x/net,BSD-3-Clause
128127
core,golang.org/x/oauth2,BSD-3-Clause

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ bin/$(PLATFORM)/jq: Makefile
342342
hack/install-jq.sh 1.7.1
343343

344344
bin/$(PLATFORM)/golangci-lint: Makefile
345-
hack/golangci-lint.sh -b "bin/$(PLATFORM)" v1.61.0
345+
hack/golangci-lint.sh -b "bin/$(PLATFORM)" v1.64.8
346346

347347
bin/$(PLATFORM)/operator-sdk: Makefile
348348
hack/install-operator-sdk.sh v1.34.1

api/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/DataDog/datadog-operator/api
22

3-
go 1.23
3+
go 1.24
44

5-
toolchain go1.23.10
5+
toolchain go1.24.5
66

77
require (
88
github.com/DataDog/datadog-api-client-go/v2 v2.34.0

0 commit comments

Comments
 (0)