Skip to content

Commit b063948

Browse files
authored
Make upgrade and update minimum Go version to 1.21 (#3123)
1 parent 6713034 commit b063948

File tree

60 files changed

+376
-416
lines changed

Some content is hidden

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

60 files changed

+376
-416
lines changed

.github/workflows/buf-binary-size.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: setup-go
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: '1.22.x'
17+
go-version: '1.23.x'
1818
- name: cache
1919
uses: actions/cache@v4
2020
with:

.github/workflows/build-and-draft-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Go
3333
uses: actions/setup-go@v5
3434
with:
35-
go-version: '1.22.x'
35+
go-version: '1.23.x'
3636
- name: Set up Git name and email
3737
run: |
3838
git config user.name "${{ github.actor }}"

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: setup-go
1515
uses: actions/setup-go@v5
1616
with:
17-
go-version: '1.22.x'
17+
go-version: '1.23.x'
1818
- name: cache
1919
uses: actions/cache@v4
2020
with:
@@ -50,7 +50,7 @@ jobs:
5050
- name: setup-go
5151
uses: actions/setup-go@v5
5252
with:
53-
go-version: '1.22.x'
53+
go-version: '1.23.x'
5454
- name: cache
5555
uses: actions/cache@v4
5656
with:

.github/workflows/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: setup-go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.22.x'
24+
go-version: '1.23.x'
2525
- name: initialize
2626
uses: github/codeql-action/init@v3
2727
with:

.github/workflows/previous.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
test-previous:
1010
strategy:
1111
matrix:
12-
go-version: ['1.20.x', '1.21.x']
12+
go-version: ['1.21.x', '1.22.x']
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: checkout

.github/workflows/windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: setup-go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.22.x'
24+
go-version: '1.23.x'
2525
cache: true
2626
- name: windows-cache
2727
uses: actions/cache@v4

.pre-commit-hooks.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
- id: buf-generate
22
name: buf generate
33
language: golang
4-
language_version: 1.22.6
4+
language_version: 1.23.0
55
entry: buf generate
66
types: [proto]
77
pass_filenames: false
88
- id: buf-breaking
99
name: buf breaking
1010
language: golang
11-
language_version: 1.22.6
11+
language_version: 1.23.0
1212
entry: buf breaking
1313
types: [proto]
1414
pass_filenames: false
1515
- id: buf-lint
1616
name: buf lint
1717
language: golang
18-
language_version: 1.22.6
18+
language_version: 1.23.0
1919
entry: buf lint
2020
types: [proto]
2121
pass_filenames: false
2222
- id: buf-format
2323
name: buf format
2424
language: golang
25-
language_version: 1.22.6
25+
language_version: 1.23.0
2626
entry: buf format -w --exit-code
2727
types: [proto]
2828
pass_filenames: false
2929
- id: buf-dep-update
3030
name: buf dep update
3131
language: golang
32-
language_version: 1.22.6
32+
language_version: 1.23.0
3333
entry: buf dep update
3434
files: '(buf\.lock|buf\.yaml)'
3535
pass_filenames: false
3636
- id: buf-dep-prune
3737
name: buf dep prune
3838
language: golang
39-
language_version: 1.22.6
39+
language_version: 1.23.0
4040
entry: buf dep prune
4141
files: '(buf\.lock|buf\.yaml)'
4242
pass_filenames: false
4343
# Deprecated: use buf-dep-update instead.
4444
- id: buf-mod-update
4545
name: buf mod update
4646
language: golang
47-
language_version: 1.22.6
47+
language_version: 1.23.0
4848
entry: buf mod update
4949
files: '(buf\.lock|buf\.yaml)'
5050
pass_filenames: false
5151
# Deprecated: use buf-dep-prune instead.
5252
- id: buf-mod-prune
5353
name: buf mod prune
5454
language: golang
55-
language_version: 1.22.6
55+
language_version: 1.23.0
5656
entry: buf mod prune
5757
files: '(buf\.lock|buf\.yaml)'
5858
pass_filenames: false

go.mod

Lines changed: 55 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
module github.com/bufbuild/buf
22

3-
go 1.20
3+
go 1.21.0
4+
5+
toolchain go1.23.0
46

57
require (
6-
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.34.2-20240508200655-46a4cf4ba109.2
7-
buf.build/gen/go/bufbuild/registry/connectrpc/go v1.16.2-20240610164129-660609bc46d3.1
8-
buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.34.2-20240610164129-660609bc46d3.2
8+
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.34.2-20240717164558-a6c49f84cc0f.2
9+
buf.build/gen/go/bufbuild/registry/connectrpc/go v1.16.2-20240801134127-09fbc17f7c9e.1
10+
buf.build/gen/go/bufbuild/registry/protocolbuffers/go v1.34.2-20240801134127-09fbc17f7c9e.2
911
connectrpc.com/connect v1.16.2
10-
connectrpc.com/otelconnect v0.7.0
12+
connectrpc.com/otelconnect v0.7.1
1113
github.com/bufbuild/protocompile v0.14.0
1214
github.com/bufbuild/protoplugin v0.0.0-20240323223605-e2735f6c31ee
13-
github.com/bufbuild/protovalidate-go v0.6.2
14-
github.com/bufbuild/protoyaml-go v0.1.9
15-
github.com/docker/docker v27.0.0+incompatible
16-
github.com/go-chi/chi/v5 v5.0.14
17-
github.com/gofrs/flock v0.8.1
18-
github.com/gofrs/uuid/v5 v5.2.0
19-
github.com/google/cel-go v0.20.1
15+
github.com/bufbuild/protovalidate-go v0.6.3
16+
github.com/bufbuild/protoyaml-go v0.1.10
17+
github.com/docker/docker v27.1.2+incompatible
18+
github.com/go-chi/chi/v5 v5.1.0
19+
github.com/gofrs/flock v0.12.1
20+
github.com/gofrs/uuid/v5 v5.3.0
21+
github.com/google/cel-go v0.21.0
2022
github.com/google/go-cmp v0.6.0
21-
github.com/google/go-containerregistry v0.19.2
23+
github.com/google/go-containerregistry v0.20.2
2224
github.com/jdx/go-netrc v1.0.0
2325
github.com/jhump/protoreflect v1.16.0
2426
github.com/klauspost/compress v1.17.9
@@ -29,34 +31,41 @@ require (
2931
github.com/spf13/cobra v1.8.1
3032
github.com/spf13/pflag v1.0.5
3133
github.com/stretchr/testify v1.9.0
32-
go.opentelemetry.io/otel v1.24.0
33-
go.opentelemetry.io/otel/sdk v1.24.0
34-
go.opentelemetry.io/otel/trace v1.24.0
34+
go.opentelemetry.io/otel v1.28.0
35+
go.opentelemetry.io/otel/sdk v1.28.0
36+
go.opentelemetry.io/otel/trace v1.28.0
3537
go.uber.org/atomic v1.11.0
3638
go.uber.org/multierr v1.11.0
3739
go.uber.org/zap v1.27.0
38-
golang.org/x/crypto v0.24.0
39-
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
40-
golang.org/x/mod v0.18.0
41-
golang.org/x/net v0.26.0
42-
golang.org/x/sync v0.7.0
43-
golang.org/x/term v0.21.0
44-
golang.org/x/tools v0.22.0
40+
golang.org/x/crypto v0.26.0
41+
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
42+
golang.org/x/mod v0.20.0
43+
golang.org/x/net v0.28.0
44+
golang.org/x/sync v0.8.0
45+
golang.org/x/term v0.23.0
46+
golang.org/x/tools v0.24.0
4547
google.golang.org/protobuf v1.34.2
4648
gopkg.in/yaml.v3 v3.0.1
4749
)
4850

4951
require (
5052
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
51-
github.com/Microsoft/go-winio v0.6.1 // indirect
53+
github.com/Microsoft/go-winio v0.6.2 // indirect
54+
github.com/Microsoft/hcsshim v0.12.5 // indirect
5255
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
53-
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
56+
github.com/containerd/cgroups/v3 v3.0.3 // indirect
57+
github.com/containerd/containerd v1.7.20 // indirect
58+
github.com/containerd/continuity v0.4.3 // indirect
59+
github.com/containerd/errdefs v0.1.0 // indirect
5460
github.com/containerd/log v0.1.0 // indirect
61+
github.com/containerd/platforms v0.2.1 // indirect
5562
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
63+
github.com/containerd/ttrpc v1.2.5 // indirect
64+
github.com/containerd/typeurl/v2 v2.2.0 // indirect
5665
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
5766
github.com/davecgh/go-spew v1.1.1 // indirect
5867
github.com/distribution/reference v0.6.0 // indirect
59-
github.com/docker/cli v26.1.4+incompatible // indirect
68+
github.com/docker/cli v27.1.2+incompatible // indirect
6069
github.com/docker/distribution v2.8.3+incompatible // indirect
6170
github.com/docker/docker-credential-helpers v0.8.2 // indirect
6271
github.com/docker/go-connections v0.5.0 // indirect
@@ -66,29 +75,38 @@ require (
6675
github.com/go-logr/logr v1.4.2 // indirect
6776
github.com/go-logr/stdr v1.2.2 // indirect
6877
github.com/gogo/protobuf v1.3.2 // indirect
78+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
6979
github.com/golang/protobuf v1.5.4 // indirect
70-
github.com/google/pprof v0.0.0-20240622144329-c177fd99eaa9 // indirect
80+
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 // indirect
81+
github.com/google/uuid v1.6.0 // indirect
7182
github.com/inconshreveable/mousetrap v1.1.0 // indirect
72-
github.com/kr/pretty v0.3.1 // indirect
7383
github.com/mitchellh/go-homedir v1.1.0 // indirect
7484
github.com/moby/docker-image-spec v1.3.1 // indirect
85+
github.com/moby/locker v1.0.1 // indirect
86+
github.com/moby/patternmatcher v0.6.0 // indirect
87+
github.com/moby/sys/mount v0.3.4 // indirect
88+
github.com/moby/sys/mountinfo v0.7.2 // indirect
89+
github.com/moby/sys/sequential v0.6.0 // indirect
90+
github.com/moby/sys/user v0.3.0 // indirect
91+
github.com/moby/sys/userns v0.1.0 // indirect
7592
github.com/moby/term v0.5.0 // indirect
7693
github.com/morikuni/aec v1.0.0 // indirect
7794
github.com/opencontainers/go-digest v1.0.0 // indirect
7895
github.com/opencontainers/image-spec v1.1.0 // indirect
96+
github.com/opencontainers/runtime-spec v1.2.0 // indirect
7997
github.com/pkg/errors v0.9.1 // indirect
8098
github.com/pmezard/go-difflib v1.0.0 // indirect
81-
github.com/rogpeppe/go-internal v1.10.0 // indirect
99+
github.com/rogpeppe/go-internal v1.12.0 // indirect
82100
github.com/russross/blackfriday/v2 v2.1.0 // indirect
83101
github.com/sirupsen/logrus v1.9.3 // indirect
84102
github.com/stoewer/go-strcase v1.3.0 // indirect
85103
github.com/vbatts/tar-split v0.11.5 // indirect
86-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
87-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 // indirect
88-
go.opentelemetry.io/otel/metric v1.24.0 // indirect
89-
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
90-
golang.org/x/sys v0.21.0 // indirect
91-
golang.org/x/text v0.16.0 // indirect
92-
google.golang.org/genproto/googleapis/api v0.0.0-20240617180043-68d350f18fd4 // indirect
93-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240617180043-68d350f18fd4 // indirect
104+
go.opencensus.io v0.24.0 // indirect
105+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
106+
go.opentelemetry.io/otel/metric v1.28.0 // indirect
107+
golang.org/x/sys v0.24.0 // indirect
108+
golang.org/x/text v0.17.0 // indirect
109+
google.golang.org/genproto/googleapis/api v0.0.0-20240812133136-8ffd90a71988 // indirect
110+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240812133136-8ffd90a71988 // indirect
111+
google.golang.org/grpc v1.65.0 // indirect
94112
)

0 commit comments

Comments
 (0)