Skip to content

Commit 798be26

Browse files
authored
chore(all): update Go to 1.24 (googleapis#11612)
* vet: install latest goimports and staticcheck * update staticcheck target to 1.24
1 parent bd0aec1 commit 798be26

File tree

192 files changed

+195
-199
lines changed

Some content is hidden

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

192 files changed

+195
-199
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"force": {
3232
"constraints": {
33-
"go": "1.22"
33+
"go": "1.23"
3434
}
3535
}
3636
}

.github/workflows/apidiff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions/setup-go@v5
2424
with:
25-
go-version: '1.23.x'
25+
go-version: '1.24.x'
2626
- name: Get changed directories
2727
id: changed_dirs
2828
# Ignore changes to the internal and root directories.
@@ -53,7 +53,7 @@ jobs:
5353
steps:
5454
- uses: actions/setup-go@v5
5555
with:
56-
go-version: '1.23.x'
56+
go-version: '1.24.x'
5757
- name: Install latest apidiff
5858
run: go install golang.org/x/exp/cmd/apidiff@latest
5959
- uses: actions/checkout@v4

.github/workflows/conformance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
matrix:
3838
# Bigtable test proxy can be run on any of these Go versions
39-
go: [ '1.22', '1.23']
39+
go: [ '1.23', '1.24']
4040
folders: ['bigtable']
4141
steps:
4242
- uses: actions/checkout@v4

.github/workflows/new_client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fetch-depth: 2
2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.23.x
26+
go-version: 1.24.x
2727
- name: Find new version files
2828
id: versions
2929
# Ignore changes to the internal and root directories.

.github/workflows/owlbot_validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fetch-depth: 1
1919
- uses: actions/setup-go@v5
2020
with:
21-
go-version: 1.23.x
21+
go-version: 1.24.x
2222
- run: |
2323
git clone -b master --single-branch --depth=1 https://github.com/googleapis/googleapis.git
2424
go run ./internal/postprocessor validate -googleapis-dir=./googleapis

.github/workflows/third_party_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fetch-depth: 2
2121
- uses: actions/setup-go@v5
2222
with:
23-
go-version: 1.23.x
23+
go-version: 1.24.x
2424
- name: Find modified go.mod files
2525
id: modfiles
2626
run: |

.github/workflows/vet.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ golint ./... 2>&1 | (
8080
) |
8181
tee /dev/stderr | (! read)
8282

83-
staticcheck -go 1.22 ./... 2>&1 | (
83+
staticcheck -go 1.24 ./... 2>&1 | (
8484
grep -v SA1019 |
85-
grep -v go-cloud-debug-agent |
8685
grep -v internal/btree/btree.go |
8786
grep -v httpreplay/internal/proxy/debug.go |
88-
grep -v third_party/go/doc |
8987
grep -v third_party/pkgsite/synopsis.go
9088
) |
9189
tee /dev/stderr | (! read)

.github/workflows/vet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '1.22.x'
22+
go-version: '1.24.x'
2323
- name: Install tools
2424
run: |
2525
go install golang.org/x/lint/golint@latest && \
26-
go install golang.org/x/tools/cmd/goimports@v0.29.0 && \
27-
go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
26+
go install golang.org/x/tools/cmd/goimports@latest && \
27+
go install honnef.co/go/tools/cmd/staticcheck@latest
2828
- name: Execute vet.sh
2929
run: ./.github/workflows/vet.sh

README.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)