Skip to content

Commit 7098d80

Browse files
authored
chore(go): bump to Go 1.24 as minimal version (#3298)
* chore(go): bump to Go 1.24 as minimal version * fix(deps): bump mockery to v2.53.4 * chore: bump go version in more modules
1 parent 66e0817 commit 7098d80

File tree

80 files changed

+144
-140
lines changed

Some content is hidden

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

80 files changed

+144
-140
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// README at: https://github.com/devcontainers/templates/tree/main/src/go
33
{
44
"name": "Go",
5-
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
5+
"image": "mcr.microsoft.com/devcontainers/go:1.24-trixie",
66

77
// Features to add to the dev container. More info: https://containers.dev/features.
88
// "features": {},

.github/workflows/ci-test-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
- name: Decide if Sonar must be run
119119
if: ${{ matrix.platform == 'ubuntu-latest' }}
120120
run: |
121-
if [[ "1.23.x" == "${{ inputs.go-version }}" ]] && \
121+
if [[ "1.24.x" == "${{ inputs.go-version }}" ]] && \
122122
[[ "true" != "${{ inputs.rootless-docker }}" ]] && \
123123
[[ "true" != "${{ inputs.testcontainers-cloud }}" ]] && \
124124
[[ "true" != "${{ inputs.ryuk-disabled }}" ]] && \

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
# We don't want to fail the build the soonest but identify which modules passed and failed.
6262
fail-fast: false
6363
matrix:
64-
go-version: [1.23.x, 1.24.x]
64+
go-version: [1.24.x, 1.25.x]
6565
module: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
6666
permissions:
6767
contents: read # for actions/checkout to fetch code
@@ -88,7 +88,7 @@ jobs:
8888
# We don't want to fail the build the soonest but identify which modules passed and failed.
8989
fail-fast: false
9090
matrix:
91-
go-version: [1.23.x, 1.24.x]
91+
go-version: [1.24.x, 1.25.x]
9292
uses: ./.github/workflows/ci-test-go.yml
9393
with:
9494
go-version: ${{ matrix.go-version }}
@@ -109,7 +109,7 @@ jobs:
109109
name: "Test with reaper off"
110110
strategy:
111111
matrix:
112-
go-version: [1.23.x, 1.24.x]
112+
go-version: [1.24.x, 1.25.x]
113113
uses: ./.github/workflows/ci-test-go.yml
114114
with:
115115
go-version: ${{ matrix.go-version }}
@@ -130,7 +130,7 @@ jobs:
130130
name: "Test with Rootless Docker"
131131
strategy:
132132
matrix:
133-
go-version: [1.23.x, 1.24.x]
133+
go-version: [1.24.x, 1.25.x]
134134
uses: ./.github/workflows/ci-test-go.yml
135135
with:
136136
go-version: ${{ matrix.go-version }}

commons-test.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(GOBIN)/gotestsum:
1212
$(call go_install,gotest.tools/gotestsum@latest)
1313

1414
$(GOBIN)/mockery:
15-
$(call go_install,github.com/vektra/mockery/v2@v2.45)
15+
$(call go_install,github.com/vektra/mockery/v2@v2.53.4)
1616

1717
.PHONY: install
1818
install: $(GOBIN)/golangci-lint $(GOBIN)/gotestsum $(GOBIN)/mockery

docs/system_requirements/ci/aws_codebuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version: 0.2
1111
phases:
1212
install:
1313
runtime-versions:
14-
golang: 1.23
14+
golang: 1.24
1515
build:
1616
commands:
1717
- go test ./...

docs/system_requirements/ci/circle_ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ workflows:
5757
- tests:
5858
matrix:
5959
parameters:
60-
go-version: ["1.23.6", "1.24.0"]
60+
go-version: ["1.24.7", "1.25.1"]
6161

6262
```
6363

docs/system_requirements/ci/concourse_ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
start_docker
3737
3838
cd repo
39-
docker run -it --rm -v "$PWD:$PWD" -w "$PWD" -v /var/run/docker.sock:/var/run/docker.sock golang:1.23 go test ./...
39+
docker run -it --rm -v "$PWD:$PWD" -w "$PWD" -v /var/run/docker.sock:/var/run/docker.sock golang:1.24 go test ./...
4040
```
4141
4242
Finally, you can use Concourse's [fly CLI](https://concourse-ci.org/fly.html) to set the pipeline and trigger the job:

docs/system_requirements/ci/dind_patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $ tree .
2424
└── platform
2525
└── integration_test.go
2626

27-
$ docker run -it --rm -v $PWD:$PWD -w $PWD -v /var/run/docker.sock:/var/run/docker.sock golang:1.23 go test ./... -v
27+
$ docker run -it --rm -v $PWD:$PWD -w $PWD -v /var/run/docker.sock:/var/run/docker.sock golang:1.24 go test ./... -v
2828
```
2929

3030
Where:
@@ -45,7 +45,7 @@ The same can be achieved with Docker Compose:
4545

4646
```yaml
4747
tests:
48-
image: golang:1.23
48+
image: golang:1.24
4949
stop_signal: SIGKILL
5050
stdin_open: true
5151
tty: true

docs/system_requirements/ci/gitlab_ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ variables:
5757
DOCKER_DRIVER: overlay2
5858
5959
test:
60-
image: golang:1.23
60+
image: golang:1.24
6161
stage: test
6262
script: go test ./... -v
6363
```

docs/system_requirements/ci/tekton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: source
1717
steps:
1818
- name: read
19-
image: golang:1.23
19+
image: golang:1.24
2020
workingDir: $(workspaces.source.path)
2121
script: go test ./... -v
2222
volumeMounts:

0 commit comments

Comments
 (0)