Skip to content

Commit fca8610

Browse files
authored
feat: go1.25 support (#5872)
1 parent a1073b1 commit fca8610

File tree

40 files changed

+277
-392
lines changed

40 files changed

+277
-392
lines changed

.github/workflows/deploy-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
# ex:
1616
# - 1.18beta1 -> 1.18.0-beta.1
1717
# - 1.18rc1 -> 1.18.0-rc.1
18-
GO_VERSION: '1.24'
18+
GO_VERSION: '1.25'
1919
HUGO_VERSION: 0.148.1
2020
CGO_ENABLED: 0
2121
steps:

.github/workflows/post-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
# ex:
1010
# - 1.18beta1 -> 1.18.0-beta.1
1111
# - 1.18rc1 -> 1.18.0-rc.1
12-
GO_VERSION: '1.24'
12+
GO_VERSION: '1.25'
1313

1414
jobs:
1515
update-gha-assets:

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
# ex:
1111
# - 1.18beta1 -> 1.18.0-beta.1
1212
# - 1.18rc1 -> 1.18.0-rc.1
13-
GO_VERSION: '1.24'
13+
GO_VERSION: '1.25'
1414

1515
jobs:
1616
# Check if there is any dirty change for go mod tidy

.github/workflows/pr-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# ex:
1414
# - 1.18beta1 -> 1.18.0-beta.1
1515
# - 1.18rc1 -> 1.18.0-rc.1
16-
GO_VERSION: '1.24'
16+
GO_VERSION: '1.25'
1717
HUGO_VERSION: 0.148.1
1818
CGO_ENABLED: 0
1919

.github/workflows/pr-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
# ex:
1111
# - 1.18beta1 -> 1.18.0-beta.1
1212
# - 1.18rc1 -> 1.18.0-rc.1
13-
GO_VERSION: '1.24'
13+
GO_VERSION: '1.25'
1414

1515
jobs:
1616
# Check if there is any dirty change for go mod tidy
@@ -39,7 +39,9 @@ jobs:
3939
# ex:
4040
# - 1.18beta1 -> 1.18.0-beta.1
4141
# - 1.18rc1 -> 1.18.0-rc.1
42-
go-version: ${{ env.GO_VERSION }}
42+
# TODO(ldez) must be changed after the first release of golangci-lint with go1.24
43+
# go-version: ${{ env.GO_VERSION }}
44+
go-version: '1.24'
4345
- name: lint
4446
uses: golangci/[email protected]
4547
with:
@@ -75,8 +77,8 @@ jobs:
7577
- ubuntu-latest
7678
- ubuntu-24.04-arm
7779
golang:
78-
- '1.23'
7980
- '1.24'
81+
- '1.25'
8082
runs-on: ${{ matrix.os }}
8183
steps:
8284
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
# ex:
1313
# - 1.18beta1 -> 1.18.0-beta.1
1414
# - 1.18rc1 -> 1.18.0-rc.1
15-
GO_VERSION: '1.24'
15+
GO_VERSION: '1.25'
1616
CHOCOLATEY_VERSION: 2.2.0
1717
steps:
1818
# temporary workaround for an error in free disk space action

build/buildx-alpine.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM golang:1.24-alpine
2+
FROM golang:1.25-alpine
33

44
# related to https://github.com/golangci/golangci-lint/issues/3107
55
ENV GOROOT /usr/local/go

build/buildx.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM golang:1.24
2+
FROM golang:1.25
33

44
# related to https://github.com/golangci/golangci-lint/issues/3107
55
ENV GOROOT /usr/local/go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/golangci/golangci-lint/v2
22

3-
go 1.23.0
3+
go 1.24.0
44

55
require (
66
4d63.com/gocheckcompilerdirectives v1.3.0

pkg/commands/internal/migrate/versionone/output.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ type OutputFormat struct {
2424
type OutputFormats []OutputFormat
2525

2626
func (p *OutputFormats) UnmarshalText(text []byte) error {
27-
formats := strings.Split(string(text), ",")
28-
29-
for _, item := range formats {
27+
for item := range strings.SplitSeq(string(text), ",") {
3028
format, path, _ := strings.Cut(item, ":")
3129

3230
*p = append(*p, OutputFormat{

0 commit comments

Comments
 (0)