Skip to content

Commit d458bb6

Browse files
authored
chore: update dependencies (#1209)
1 parent 996289a commit d458bb6

File tree

14 files changed

+227
-208
lines changed

14 files changed

+227
-208
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: true
2020
matrix:
21-
go: ["1.19.x"]
21+
go: ["1.23.x"]
2222
os: [ubuntu-latest, macos-latest, windows-latest]
2323
runs-on: ${{ matrix.os }}
2424

@@ -33,17 +33,7 @@ jobs:
3333
uses: actions/checkout@v4
3434

3535
- name: golangci-lint
36-
if: runner.os != 'Windows'
3736
uses: golangci/golangci-lint-action@v6
3837
with:
39-
version: v1.50.1
40-
args: "--out-${NO_FUTURE}format colored-line-number"
41-
42-
- name: golangci-lint
43-
if: runner.os == 'Windows'
44-
uses: golangci/golangci-lint-action@v6
45-
env:
46-
nofuture: out-format
47-
with:
48-
version: v1.50.1
49-
args: "--%nofuture% colored-line-number"
38+
version: v1.62
39+
args: --out-format colored-line-number

.github/workflows/proto2http.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
go: ["1.19.x"]
17+
go: ["1.23.x"]
1818

1919
steps:
2020
- uses: actions/checkout@v4

.golangci.yml

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,7 @@ run:
1313
tests: false
1414
# List of build tags, all linters use it.
1515
# Default: [].
16-
build-tags:
17-
# - mytag
18-
# Which dirs to skip: issues from them won't be reported.
19-
# Can use regexp here: `generated.*`, regexp is applied on full path.
20-
# Default value is empty list,
21-
# but default dirs are skipped independently of this option's value (see skip-dirs-use-default).
22-
# "/" will be replaced by current OS file path separator to properly work on Windows.
23-
skip-dirs:
24-
- test
25-
# - src/external_libs
26-
# - autogenerated_by_my_lib
27-
# Enables skipping of directories:
28-
# - vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
29-
# Default: true
30-
skip-dirs-use-default: false
31-
# Which files to skip: they will be analyzed, but issues from them won't be reported.
32-
# Default value is empty list,
33-
# but there is no need to include all autogenerated files,
34-
# we confidently recognize autogenerated files.
35-
# If it's not please let us know.
36-
# "/" will be replaced by current OS file path separator to properly work on Windows.
37-
skip-files:
38-
# - ".*\\.my\\.go$"
39-
# - lib/bad.go
16+
build-tags: []
4017
# If set we pass it to "go list -mod={option}". From "go help modules":
4118
# If invoked with -mod=readonly, the go command is disallowed from the implicit
4219
# automatic updating of go.mod described above. Instead, it fails when any changes
@@ -52,6 +29,12 @@ run:
5229
# Allow multiple parallel golangci-lint instances running.
5330
# If false (default) - golangci-lint acquires file lock on start.
5431
allow-parallel-runners: false
32+
33+
issues:
34+
exclude-dirs:
35+
- test
36+
exclude-files: []
37+
5538
linters:
5639
enable:
5740
- gofmt
@@ -63,28 +46,4 @@ linters-settings:
6346
staticcheck:
6447
checks: ["all", "-SA1019", "-SA6002"]
6548
errcheck:
66-
# Report about not checking of errors in type assertions: `a := b.(MyStruct)`.
67-
# Such cases aren't reported by default.
68-
# Default: false
69-
# check-type-assertions: true
70-
71-
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.
72-
# Such cases aren't reported by default.
73-
# Default: false
74-
# check-blank: true
75-
76-
# DEPRECATED comma-separated list of pairs of the form pkg:regex
77-
#
78-
# the regex is used to ignore names within pkg. (default "fmt:.*").
79-
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
80-
# ignore: Unlock|try2|UnregisterService
81-
82-
# DEPRECATED use exclude-functions instead.
83-
#
84-
# Path to a file containing a list of functions to exclude from checking.
85-
# See https://github.com/kisielk/errcheck#excluding-functions for details.
86-
# exclude: /path/to/file.txt
87-
88-
# List of functions to exclude from checking, where each entry is a single function to exclude.
89-
# See https://github.com/kisielk/errcheck#excluding-functions for details.
90-
exclude-functions:
49+
exclude-functions: [] # ✅ 改为空数组

go.mod

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module github.com/douyu/jupiter
22

3-
go 1.21
3+
go 1.23.0
44

55
require (
66
cirello.io/pglock v1.14.0
77
github.com/BurntSushi/toml v1.3.2
88
github.com/alibaba/sentinel-golang v1.0.4
99
github.com/aliyun/aliyun-tablestore-go-sdk v1.7.17
10-
github.com/apache/rocketmq-client-go/v2 v2.1.2
10+
github.com/apache/rocketmq-client-go/v2 v2.1.3-0.20250427084711-67ec50b93040
1111
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0
1212
github.com/coocood/freecache v1.2.3
1313
github.com/cosmtrek/air v1.45.0
@@ -18,12 +18,12 @@ require (
1818
github.com/gin-gonic/gin v1.9.1
1919
github.com/go-basic/ipv4 v1.0.0
2020
github.com/go-redis/redis/v8 v8.11.5
21-
github.com/go-resty/resty/v2 v2.7.0
21+
github.com/go-resty/resty/v2 v2.11.0
2222
github.com/gogf/gf v1.16.9
23-
github.com/golang/protobuf v1.5.3
23+
github.com/golang/protobuf v1.5.4
2424
github.com/gorilla/websocket v1.5.0
2525
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
26-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.17.1
26+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1
2727
github.com/hashicorp/golang-lru/v2 v2.0.7
2828
github.com/hnlq715/struct2interface v0.1.5
2929
github.com/iancoleman/strcase v0.3.0
@@ -45,30 +45,30 @@ require (
4545
github.com/smartystreets/goconvey v1.8.1
4646
github.com/spf13/cast v1.5.1
4747
github.com/srikrsna/protoc-gen-gotag v1.0.2
48-
github.com/stretchr/testify v1.8.4
48+
github.com/stretchr/testify v1.10.0
4949
github.com/tidwall/pretty v1.2.1
5050
github.com/urfave/cli v1.22.14
5151
github.com/valyala/fasthttp v1.48.0
5252
github.com/xlab/treeprint v1.2.0
5353
go.etcd.io/etcd/api/v3 v3.5.9
5454
go.etcd.io/etcd/client/v3 v3.5.9
5555
go.mongodb.org/mongo-driver v1.12.1
56-
go.opentelemetry.io/otel v1.19.0
57-
go.opentelemetry.io/otel/bridge/opentracing v1.16.0
58-
go.opentelemetry.io/otel/exporters/jaeger v1.16.0
59-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0
60-
go.opentelemetry.io/otel/sdk v1.19.0
61-
go.opentelemetry.io/otel/trace v1.19.0
56+
go.opentelemetry.io/otel v1.37.0
57+
go.opentelemetry.io/otel/bridge/opentracing v1.37.0
58+
go.opentelemetry.io/otel/exporters/jaeger v1.17.0
59+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.37.0
60+
go.opentelemetry.io/otel/sdk v1.37.0
61+
go.opentelemetry.io/otel/trace v1.37.0
6262
go.uber.org/automaxprocs v1.5.3
6363
go.uber.org/multierr v1.11.0
6464
go.uber.org/zap v1.25.0
65-
golang.org/x/mod v0.12.0
66-
golang.org/x/sync v0.3.0
67-
golang.org/x/text v0.13.0
68-
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d
69-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d
70-
google.golang.org/grpc v1.58.2
71-
google.golang.org/protobuf v1.34.1
65+
golang.org/x/mod v0.25.0
66+
golang.org/x/sync v0.15.0
67+
golang.org/x/text v0.26.0
68+
google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822
69+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822
70+
google.golang.org/grpc v1.73.0
71+
google.golang.org/protobuf v1.36.6
7272
gopkg.in/yaml.v3 v3.0.1
7373
gorm.io/driver/mysql v1.4.7
7474
gorm.io/gorm v1.24.6
@@ -84,8 +84,8 @@ require (
8484
github.com/bep/godartsass v0.16.0 // indirect
8585
github.com/bep/golibsass v1.1.0 // indirect
8686
github.com/bytedance/sonic v1.9.1 // indirect
87-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
88-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
87+
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
88+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
8989
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
9090
github.com/clbanning/mxj v1.8.5-0.20200714211355-ff02cfb8ea28 // indirect
9191
github.com/cli/safeexec v1.0.0 // indirect
@@ -98,7 +98,7 @@ require (
9898
github.com/emirpasic/gods v1.12.0 // indirect
9999
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
100100
github.com/gin-contrib/sse v0.1.0 // indirect
101-
github.com/go-logr/logr v1.2.4 // indirect
101+
github.com/go-logr/logr v1.4.3 // indirect
102102
github.com/go-logr/stdr v1.2.2 // indirect
103103
github.com/go-ole/go-ole v1.2.5 // indirect
104104
github.com/go-playground/locales v0.14.1 // indirect
@@ -113,9 +113,9 @@ require (
113113
github.com/golang/snappy v0.0.3 // indirect
114114
github.com/gomodule/redigo v2.0.0+incompatible // indirect
115115
github.com/google/flatbuffers v23.5.26+incompatible // indirect
116-
github.com/google/go-cmp v0.5.9 // indirect
116+
github.com/google/go-cmp v0.7.0 // indirect
117117
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
118-
github.com/google/uuid v1.3.0 // indirect
118+
github.com/google/uuid v1.6.0 // indirect
119119
github.com/gopherjs/gopherjs v1.17.2 // indirect
120120
github.com/grokify/html-strip-tags-go v0.0.1 // indirect
121121
github.com/hashicorp/golang-lru v0.5.4 // indirect
@@ -145,7 +145,7 @@ require (
145145
github.com/sirupsen/logrus v1.8.1 // indirect
146146
github.com/smarty/assertions v1.15.0 // indirect
147147
github.com/spf13/afero v1.9.3 // indirect
148-
github.com/stretchr/objx v0.5.0 // indirect
148+
github.com/stretchr/objx v0.5.2 // indirect
149149
github.com/tdewolff/parse/v2 v2.6.5 // indirect
150150
github.com/tidwall/gjson v1.13.0 // indirect
151151
github.com/tidwall/match v1.1.1 // indirect
@@ -160,17 +160,17 @@ require (
160160
github.com/xdg-go/stringprep v1.0.4 // indirect
161161
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
162162
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
163-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
164-
go.opentelemetry.io/otel/metric v1.19.0 // indirect
165-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
163+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
164+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.37.0 // indirect
165+
go.opentelemetry.io/otel/metric v1.37.0 // indirect
166+
go.opentelemetry.io/proto/otlp v1.7.0 // indirect
166167
go.uber.org/atomic v1.10.0 // indirect
167168
golang.org/x/arch v0.3.0 // indirect
168-
golang.org/x/crypto v0.14.0 // indirect
169+
golang.org/x/crypto v0.39.0 // indirect
169170
golang.org/x/exp v0.0.0-20221031165847-c99f073a8326 // indirect
170-
golang.org/x/net v0.17.0 // indirect
171-
golang.org/x/sys v0.13.0 // indirect
172-
golang.org/x/tools v0.12.0 // indirect
173-
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
171+
golang.org/x/net v0.41.0 // indirect
172+
golang.org/x/sys v0.33.0 // indirect
173+
golang.org/x/tools v0.33.0 // indirect
174174
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
175175
gopkg.in/yaml.v2 v2.4.0 // indirect
176176
stathat.com/c/consistent v1.0.0 // indirect

0 commit comments

Comments
 (0)