Skip to content

Commit

Permalink
chore: go1.23.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 21, 2024
1 parent 304e22a commit dac86a0
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build and deploy documentation
runs-on: ubuntu-latest
env:
GO_VERSION: '1.22'
GO_VERSION: '1.23.0-rc.1'
NODE_VERSION: '20.x'
CGO_ENABLED: 0

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: '1.22'
go-version: '1.23.0-rc.1'
- uses: actions/setup-node@v4
with:
node-version: "15"
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: '1.22'
go-version: '1.23.0-rc.1'

- name: Update GitHub Action config
run: make assets/github-action-config.json
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: '1.22'
go-version: '1.23.0-rc.1'

- name: Update reference files
run: cp .golangci.next.reference.yml .golangci.reference.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: Build documentation
runs-on: ubuntu-latest
env:
GO_VERSION: '1.22'
GO_VERSION: '1.23.0-rc.1'
NODE_VERSION: '20.x'
CGO_ENABLED: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-extra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: '1.22'
go-version: '1.23.0-rc.1'
- name: Run go list
run: go list -json -m all > go.list
- name: Nancy
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

env:
GO_VERSION: '1.22'
GO_VERSION: '1.23.0-rc.1'

jobs:
# Check if there is any dirty change for go mod tidy
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ env.GO_VERSION }}
go-version: '1.22'
- name: lint
uses: golangci/[email protected]
with:
Expand Down Expand Up @@ -86,8 +86,8 @@ jobs:
strategy:
matrix:
golang:
- '1.21'
- '1.22'
- '1.23.0-rc.1'
steps:
- uses: actions/checkout@v4
- name: Install Go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
GO_VERSION: '1.22'
GO_VERSION: '1.23.0-rc.1'
CHOCOLATEY_VERSION: 2.2.0
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion build/buildx-alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.22-alpine
FROM golang:1.23-alpine

# related to https://github.com/golangci/golangci-lint/issues/3107
ENV GOROOT /usr/local/go
Expand Down
2 changes: 1 addition & 1 deletion build/buildx.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.22
FROM golang:1.23

# related to https://github.com/golangci/golangci-lint/issues/3107
ENV GOROOT /usr/local/go
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/golangci/golangci-lint

go 1.21.0
go 1.22.0

require (
4d63.com/gocheckcompilerdirectives v1.2.1
Expand Down
3 changes: 1 addition & 2 deletions pkg/golinters/govet/govet.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ func analyzersFromConfig(settings *config.GovetSettings) []*analysis.Analyzer {
}

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

Expand Down
1 change: 0 additions & 1 deletion pkg/golinters/govet/govet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func TestGovetAnalyzerIsEnabled(t *testing.T) {
{Name: "unsafeptr", Enabled: true, Enable: []string{"unsafeptr"}},
{Name: "shift", Enabled: true, EnableAll: true},
{Name: "shadow", EnableAll: true, Disable: []string{"shadow"}, Enabled: false},
{Name: "loopclosure", EnableAll: true, Enabled: false, Go: "1.22"}, // TODO(ldez) remove loopclosure when go1.23
} {
cfg := &config.GovetSettings{
Enable: tc.Enable,
Expand Down
3 changes: 0 additions & 3 deletions test/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ func TestCgoOk(t *testing.T) {
WithArgs("--timeout=3m",
"--enable-all",
).
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
WithTargetPath(testdataDir, "cgo").
Runner().
Install().
Expand Down Expand Up @@ -323,7 +322,6 @@ func TestUnsafeOk(t *testing.T) {
testshared.NewRunnerBuilder(t).
WithNoConfig().
WithArgs("--enable-all").
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
WithTargetPath(testdataDir, "unsafe").
Runner().
Install().
Expand Down Expand Up @@ -484,7 +482,6 @@ func TestEnableAllFastAndEnableCanCoexist(t *testing.T) {
testshared.NewRunnerBuilder(t).
WithNoConfig().
WithArgs(test.args...).
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
WithTargetPath(testdataDir, minimalPkg).
WithBinPath(binPath).
Runner().
Expand Down
1 change: 0 additions & 1 deletion test/testshared/integration/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func testOneSource(t *testing.T, log *logutils.StderrLog, binPath, sourcePath st
}

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

0 comments on commit dac86a0

Please sign in to comment.