Skip to content

Commit 4c421d0

Browse files
authored
all: Update to go 1.26 (#3653)
1 parent b84d07f commit 4c421d0

File tree

14 files changed

+18
-16
lines changed

14 files changed

+18
-16
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
os: [ubuntu-latest, macos-latest]
2525
# When updating this, make sure to also update the
2626
# latest_go_version variable in internal/testing/runchecks.sh.
27-
go-version: [1.25.x]
27+
go-version: [1.26.x]
2828
include:
29-
- go-version: 1.24.x
29+
- go-version: 1.25.x
3030
os: ubuntu-latest
3131

3232
runs-on: ${{ matrix.os }}

docstore/mongodocstore/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module gocloud.dev/docstore/mongodocstore
1616

1717
go 1.24.0
1818

19-
toolchain go1.24.7
19+
toolchain go1.25.0
2020

2121
require (
2222
github.com/google/go-cmp v0.7.0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module gocloud.dev
1616

1717
go 1.24.0
1818

19-
toolchain go1.26.0
19+
toolchain go1.25.0
2020

2121
require (
2222
cloud.google.com/go/compute/metadata v0.9.0

internal/testing/runchecks.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ rootdir="$(pwd)"
4444
# new Go version. Some checks below we only run
4545
# for the latest Go version.
4646
latest_go_version=0
47-
if [[ $(go version) == *go1\.25* ]]; then
47+
go_version=$(go version)
48+
if [[ ${go_version} == *go1\.26* ]]; then
4849
latest_go_version=1
4950
fi
51+
echo "Go Version: ${go_version}; latest=${latest_go_version}"
5052

5153
# Build the test-summary app, which is used inside the loop to summarize results
5254
# from Go tests.

internal/website/data/examples.json

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

internal/website/gatherexamples/gatherexamples.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func gather(pkgs []*packages.Package) (map[string]example, error) {
141141
for _, decl := range file.Decls {
142142
// Determine whether this declaration is an example function.
143143
fn, ok := decl.(*ast.FuncDecl)
144-
if !ok || !strings.HasPrefix(fn.Name.Name, "Example") || len(fn.Type.Params.List) > 0 || len(fn.Type.Params.List) > 0 {
144+
if !ok || !strings.HasPrefix(fn.Name.Name, "Example") || len(fn.Type.Params.List) > 0 {
145145
continue
146146
}
147147

internal/website/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module gocloud.dev/internal/website
22

33
go 1.24.0
44

5-
toolchain go1.24.8
5+
toolchain go1.25.0
66

77
require (
88
github.com/google/go-cmp v0.6.0

pubsub/kafkapubsub/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module gocloud.dev/pubsub/kafkapubsub
1616

1717
go 1.24.0
1818

19-
toolchain go1.24.7
19+
toolchain go1.25.0
2020

2121
require (
2222
github.com/IBM/sarama v1.46.3

pubsub/natspubsub/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module gocloud.dev/pubsub/natspubsub
1616

1717
go 1.24.0
1818

19-
toolchain go1.24.7
19+
toolchain go1.25.0
2020

2121
require (
2222
github.com/google/go-cmp v0.7.0

pubsub/rabbitpubsub/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module gocloud.dev/pubsub/rabbitpubsub
1616

1717
go 1.24.0
1818

19-
toolchain go1.24.7
19+
toolchain go1.25.0
2020

2121
require (
2222
github.com/rabbitmq/amqp091-go v1.10.0

0 commit comments

Comments
 (0)