Skip to content

Commit dac86a0

Browse files
committed
chore: go1.23.0-rc1
1 parent 304e22a commit dac86a0

File tree

13 files changed

+14
-20
lines changed

13 files changed

+14
-20
lines changed

.github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Build and deploy documentation
1212
runs-on: ubuntu-latest
1313
env:
14-
GO_VERSION: '1.22'
14+
GO_VERSION: '1.23.0-rc.1'
1515
NODE_VERSION: '20.x'
1616
CGO_ENABLED: 0
1717

.github/workflows/post-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# ex:
2121
# - 1.18beta1 -> 1.18.0-beta.1
2222
# - 1.18rc1 -> 1.18.0-rc.1
23-
go-version: '1.22'
23+
go-version: '1.23.0-rc.1'
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: "15"
@@ -56,7 +56,7 @@ jobs:
5656
# ex:
5757
# - 1.18beta1 -> 1.18.0-beta.1
5858
# - 1.18rc1 -> 1.18.0-rc.1
59-
go-version: '1.22'
59+
go-version: '1.23.0-rc.1'
6060

6161
- name: Update GitHub Action config
6262
run: make assets/github-action-config.json
@@ -84,7 +84,7 @@ jobs:
8484
# ex:
8585
# - 1.18beta1 -> 1.18.0-beta.1
8686
# - 1.18rc1 -> 1.18.0-rc.1
87-
go-version: '1.22'
87+
go-version: '1.23.0-rc.1'
8888

8989
- name: Update reference files
9090
run: cp .golangci.next.reference.yml .golangci.reference.yml

.github/workflows/pr-documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Build documentation
1010
runs-on: ubuntu-latest
1111
env:
12-
GO_VERSION: '1.22'
12+
GO_VERSION: '1.23.0-rc.1'
1313
NODE_VERSION: '20.x'
1414
CGO_ENABLED: 0
1515

.github/workflows/pr-extra.yml

+1-1
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.22'
20+
go-version: '1.23.0-rc.1'
2121
- name: Run go list
2222
run: go list -json -m all > go.list
2323
- name: Nancy

.github/workflows/pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77

88
env:
9-
GO_VERSION: '1.22'
9+
GO_VERSION: '1.23.0-rc.1'
1010

1111
jobs:
1212
# Check if there is any dirty change for go mod tidy
@@ -42,7 +42,7 @@ jobs:
4242
# ex:
4343
# - 1.18beta1 -> 1.18.0-beta.1
4444
# - 1.18rc1 -> 1.18.0-rc.1
45-
go-version: ${{ env.GO_VERSION }}
45+
go-version: '1.22'
4646
- name: lint
4747
uses: golangci/[email protected]
4848
with:
@@ -86,8 +86,8 @@ jobs:
8686
strategy:
8787
matrix:
8888
golang:
89-
- '1.21'
9089
- '1.22'
90+
- '1.23.0-rc.1'
9191
steps:
9292
- uses: actions/checkout@v4
9393
- name: Install Go

.github/workflows/tag.yml

+1-1
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.22'
15+
GO_VERSION: '1.23.0-rc.1'
1616
CHOCOLATEY_VERSION: 2.2.0
1717
steps:
1818
- uses: actions/checkout@v4

build/buildx-alpine.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM golang:1.22-alpine
2+
FROM golang:1.23-alpine
33

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

build/buildx.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.4
2-
FROM golang:1.22
2+
FROM golang:1.23
33

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

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/golangci/golangci-lint
22

3-
go 1.21.0
3+
go 1.22.0
44

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

pkg/golinters/govet/govet.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ func analyzersFromConfig(settings *config.GovetSettings) []*analysis.Analyzer {
179179
}
180180

181181
func isAnalyzerEnabled(name string, cfg *config.GovetSettings, defaultAnalyzers []*analysis.Analyzer) bool {
182-
// TODO(ldez) remove loopclosure when go1.23
183-
if name == loopclosure.Analyzer.Name && config.IsGoGreaterThanOrEqual(cfg.Go, "1.22") {
182+
if name == loopclosure.Analyzer.Name {
184183
return false
185184
}
186185

pkg/golinters/govet/govet_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func TestGovetAnalyzerIsEnabled(t *testing.T) {
8484
{Name: "unsafeptr", Enabled: true, Enable: []string{"unsafeptr"}},
8585
{Name: "shift", Enabled: true, EnableAll: true},
8686
{Name: "shadow", EnableAll: true, Disable: []string{"shadow"}, Enabled: false},
87-
{Name: "loopclosure", EnableAll: true, Enabled: false, Go: "1.22"}, // TODO(ldez) remove loopclosure when go1.23
8887
} {
8988
cfg := &config.GovetSettings{
9089
Enable: tc.Enable,

test/run_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ func TestCgoOk(t *testing.T) {
101101
WithArgs("--timeout=3m",
102102
"--enable-all",
103103
).
104-
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
105104
WithTargetPath(testdataDir, "cgo").
106105
Runner().
107106
Install().
@@ -323,7 +322,6 @@ func TestUnsafeOk(t *testing.T) {
323322
testshared.NewRunnerBuilder(t).
324323
WithNoConfig().
325324
WithArgs("--enable-all").
326-
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
327325
WithTargetPath(testdataDir, "unsafe").
328326
Runner().
329327
Install().
@@ -484,7 +482,6 @@ func TestEnableAllFastAndEnableCanCoexist(t *testing.T) {
484482
testshared.NewRunnerBuilder(t).
485483
WithNoConfig().
486484
WithArgs(test.args...).
487-
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
488485
WithTargetPath(testdataDir, minimalPkg).
489486
WithBinPath(binPath).
490487
Runner().

test/testshared/integration/run.go

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func testOneSource(t *testing.T, log *logutils.StderrLog, binPath, sourcePath st
6363
}
6464

6565
args := []string{
66-
"--go=1.22", // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
6766
"--disable-all",
6867
"--out-format=json",
6968
"--max-same-issues=100",

0 commit comments

Comments
 (0)