Skip to content

Commit e9b7221

Browse files
authored
go1.26 support (#6271)
1 parent 9abb996 commit e9b7221

File tree

20 files changed

+33
-36
lines changed

20 files changed

+33
-36
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.25'
18+
GO_VERSION: '1.26'
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.25'
12+
GO_VERSION: '1.26'
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.25'
13+
GO_VERSION: '1.26'
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.25'
16+
GO_VERSION: '1.26'
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.25'
13+
GO_VERSION: '1.26'
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.25
43+
# go-version: ${{ env.GO_VERSION }}
44+
go-version: '1.25'
4345
- name: lint
4446
uses: golangci/golangci-lint-action@v9.2.0
4547
with:
@@ -75,8 +77,8 @@ jobs:
7577
- ubuntu-latest
7678
- ubuntu-24.04-arm
7779
golang:
78-
- '1.24'
7980
- '1.25'
81+
- '1.26'
8082
runs-on: ${{ matrix.os }}
8183
steps:
8284
- uses: actions/checkout@v6

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# ex:
1818
# - 1.18beta1 -> 1.18.0-beta.1
1919
# - 1.18rc1 -> 1.18.0-rc.1
20-
GO_VERSION: '1.25'
20+
GO_VERSION: '1.26'
2121
CHOCOLATEY_VERSION: 2.2.0
2222
steps:
2323
# 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.25-alpine
2+
FROM golang:1.26-alpine
33

44
ARG TARGETPLATFORM
55

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.25
2+
FROM golang:1.26
33

44
ARG TARGETPLATFORM
55

go.mod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ module github.com/golangci/golangci-lint/v2
33
// The minimum Go version must always be latest-1.
44
// This version should never be changed outside of the PR to add the support of newer Go version.
55
// Only golangci-lint maintainers are allowed to change it.
6-
go 1.24.0
6+
go 1.25.0
7+
8+
ignore (
9+
./docs
10+
./jsonschema
11+
)
712

813
require (
914
4d63.com/gocheckcompilerdirectives v1.3.0
@@ -138,7 +143,6 @@ require (
138143
go-simpler.org/sloglint v0.11.1
139144
go.augendre.info/arangolint v0.4.0
140145
go.augendre.info/fatcontext v0.9.0
141-
go.uber.org/automaxprocs v1.6.0
142146
go.yaml.in/yaml/v3 v3.0.4
143147
golang.org/x/exp v0.0.0-20250620022241-b7579e27df2b
144148
golang.org/x/mod v0.33.0

go.sum

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)