Skip to content

Commit 2d5fcd7

Browse files
housemehailaz
andauthored
chore: upgrade dependencies to latest versions and fix security vulne… (#4237)
This PR includes the following updates and fixes: - **Dependency upgrades**: Updated all dependencies in `go.mod` to their latest versions to ensure compatibility and leverage the latest features and fixes. - **Security fixes**: - Resolved known vulnerabilities in `golang.org/x/net` by upgrading to the latest secure version. - Addressed security issues in `golang.org/x/crypto` by upgrading to the latest secure version. These changes improve the overall security and stability of the project. Please review the changes and ensure compatibility with the updated dependencies. --------- Co-authored-by: hailaz <[email protected]>
1 parent 8204385 commit 2d5fcd7

Some content is hidden

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

76 files changed

+1211
-1170
lines changed

.github/workflows/ci-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# 1. Update the `LATEST_GO_VERSION` env variable.
4141
# 2. Update the `Report Coverage` action.
4242
# 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
43-
go-version: [ "1.22", "1.23" ]
43+
go-version: [ "1.23", "1.24" ]
4444
goarch: [ "386", "amd64" ]
4545

4646
runs-on: ubuntu-latest

.github/workflows/ci-sub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ concurrency:
3030
env:
3131
TZ: "Asia/Shanghai"
3232
# for unit testing cases of some components that only execute on the latest go version.
33-
LATEST_GO_VERSION: "1.23"
33+
LATEST_GO_VERSION: "1.24"
3434

3535
jobs:
3636
code-test:
@@ -40,7 +40,7 @@ jobs:
4040
# When adding new go version to the list, make sure:
4141
# 1. Update the `LATEST_GO_VERSION` env variable.
4242
# 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
43-
go-version: [ "1.22", "1.23" ]
43+
go-version: [ "1.23", "1.24" ]
4444
goarch: [ "386", "amd64" ]
4545

4646
runs-on: ubuntu-latest

.github/workflows/sonarcloud.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions: read
1717
jobs:
1818
analysis:
1919
name: Scorecards analysis
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2121
permissions:
2222
# Needed to upload the results to code-scanning dashboard.
2323
security-events: write

container/gring/gring_z_example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func ExampleRing_Next() {
141141
// Prev: 2
142142
}
143143

144-
func ExampleRing_Link_Common() {
144+
func ExampleRing_Link_common() {
145145
r := gring.New(10)
146146
for i := 0; i < 5; i++ {
147147
r.Set(i).Next()
@@ -167,7 +167,7 @@ func ExampleRing_Link_Common() {
167167
// [5 6 7 8 9 10 11 12 13 14]
168168
}
169169

170-
func ExampleRing_Link_SameRing() {
170+
func ExampleRing_Link_sameRing() {
171171
r := gring.New(10)
172172
for i := 0; i < 5; i++ {
173173
r.Set(i).Next()

container/gset/gset_z_example_any_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func ExampleSet_Contains() {
153153
// true
154154
}
155155

156-
func ExampleSet_ContainsI() {
156+
func ExampleSet_containsI() {
157157
var set gset.StrSet
158158
set.Add("a")
159159
fmt.Println(set.Contains("a"))

container/gtree/gtree_z_example_avltree_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func ExampleAVLTree_IteratorAsc() {
632632
// key: 9 , value: 1
633633
}
634634

635-
func ExampleAVLTree_IteratorAscFrom_Normal() {
635+
func ExampleAVLTree_IteratorAscFrom_normal() {
636636
m := make(map[interface{}]interface{})
637637
for i := 1; i <= 5; i++ {
638638
m[i] = i * 10
@@ -652,7 +652,7 @@ func ExampleAVLTree_IteratorAscFrom_Normal() {
652652
// key: 5 , value: 50
653653
}
654654

655-
func ExampleAVLTree_IteratorAscFrom_NoExistKey() {
655+
func ExampleAVLTree_IteratorAscFrom_noExistKey() {
656656
m := make(map[interface{}]interface{})
657657
for i := 1; i <= 5; i++ {
658658
m[i] = i * 10
@@ -667,7 +667,7 @@ func ExampleAVLTree_IteratorAscFrom_NoExistKey() {
667667
// Output:
668668
}
669669

670-
func ExampleAVLTree_IteratorAscFrom_NoExistKeyAndMatchFalse() {
670+
func ExampleAVLTree_IteratorAscFrom_noExistKeyAndMatchFalse() {
671671
m := make(map[interface{}]interface{})
672672
for i := 1; i <= 5; i++ {
673673
m[i] = i * 10

container/gtree/gtree_z_example_btree_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ func ExampleBTree_IteratorAsc() {
558558
// key: 9 , value: 1
559559
}
560560

561-
func ExampleBTree_IteratorAscFrom_Normal() {
561+
func ExampleBTree_IteratorAscFrom_normal() {
562562
m := make(map[interface{}]interface{})
563563
for i := 1; i <= 5; i++ {
564564
m[i] = i * 10
@@ -578,7 +578,7 @@ func ExampleBTree_IteratorAscFrom_Normal() {
578578
// key: 5 , value: 50
579579
}
580580

581-
func ExampleBTree_IteratorAscFrom_NoExistKey() {
581+
func ExampleBTree_IteratorAscFrom_noExistKey() {
582582
m := make(map[interface{}]interface{})
583583
for i := 1; i <= 5; i++ {
584584
m[i] = i * 10
@@ -593,7 +593,7 @@ func ExampleBTree_IteratorAscFrom_NoExistKey() {
593593
// Output:
594594
}
595595

596-
func ExampleBTree_IteratorAscFrom_NoExistKeyAndMatchFalse() {
596+
func ExampleBTree_IteratorAscFrom_noExistKeyAndMatchFalse() {
597597
m := make(map[interface{}]interface{})
598598
for i := 1; i <= 5; i++ {
599599
m[i] = i * 10

container/gtree/gtree_z_example_redblacktree_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func ExampleRedBlackTree_IteratorAsc() {
544544
// key: 9 , value: 1
545545
}
546546

547-
func ExampleRedBlackTree_IteratorAscFrom_Normal() {
547+
func ExampleRedBlackTree_IteratorAscFrom_normal() {
548548
m := make(map[interface{}]interface{})
549549
for i := 1; i <= 5; i++ {
550550
m[i] = i * 10
@@ -564,7 +564,7 @@ func ExampleRedBlackTree_IteratorAscFrom_Normal() {
564564
// key: 5 , value: 50
565565
}
566566

567-
func ExampleRedBlackTree_IteratorAscFrom_NoExistKey() {
567+
func ExampleRedBlackTree_IteratorAscFrom_noExistKey() {
568568
m := make(map[interface{}]interface{})
569569
for i := 1; i <= 5; i++ {
570570
m[i] = i * 10
@@ -579,7 +579,7 @@ func ExampleRedBlackTree_IteratorAscFrom_NoExistKey() {
579579
// Output:
580580
}
581581

582-
func ExampleRedBlackTree_IteratorAscFrom_NoExistKeyAndMatchFalse() {
582+
func ExampleRedBlackTree_IteratorAscFrom_noExistKeyAndMatchFalse() {
583583
m := make(map[interface{}]interface{})
584584
for i := 1; i <= 5; i++ {
585585
m[i] = i * 10

container/gvar/gvar_z_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
// New
18-
func ExampleVarNew() {
18+
func ExampleNew() {
1919
v := gvar.New(400)
2020
fmt.Println(v)
2121

contrib/config/apollo/go.mod

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
module github.com/gogf/gf/contrib/config/apollo/v2
22

3-
go 1.22
3+
go 1.23.0
44

55
require (
66
github.com/apolloconfig/agollo/v4 v4.3.1
77
github.com/gogf/gf/v2 v2.9.0
88
)
99

1010
require (
11-
github.com/BurntSushi/toml v1.4.0 // indirect
11+
github.com/BurntSushi/toml v1.5.0 // indirect
1212
github.com/clbanning/mxj/v2 v2.7.0 // indirect
1313
github.com/emirpasic/gods v1.18.1 // indirect
1414
github.com/fatih/color v1.18.0 // indirect
15-
github.com/fsnotify/fsnotify v1.7.0 // indirect
15+
github.com/fsnotify/fsnotify v1.9.0 // indirect
1616
github.com/go-logr/logr v1.4.2 // indirect
1717
github.com/go-logr/stdr v1.2.2 // indirect
1818
github.com/google/uuid v1.6.0 // indirect
1919
github.com/gorilla/websocket v1.5.3 // indirect
2020
github.com/grokify/html-strip-tags-go v0.1.0 // indirect
2121
github.com/hashicorp/hcl v1.0.0 // indirect
2222
github.com/magiconair/properties v1.8.9 // indirect
23-
github.com/mattn/go-colorable v0.1.13 // indirect
23+
github.com/mattn/go-colorable v0.1.14 // indirect
2424
github.com/mattn/go-isatty v0.0.20 // indirect
2525
github.com/mattn/go-runewidth v0.0.16 // indirect
2626
github.com/mitchellh/mapstructure v1.4.1 // indirect
@@ -33,13 +33,14 @@ require (
3333
github.com/spf13/pflag v1.0.5 // indirect
3434
github.com/spf13/viper v1.8.1 // indirect
3535
github.com/subosito/gotenv v1.2.0 // indirect
36-
go.opentelemetry.io/otel v1.32.0 // indirect
37-
go.opentelemetry.io/otel/metric v1.32.0 // indirect
38-
go.opentelemetry.io/otel/sdk v1.32.0 // indirect
39-
go.opentelemetry.io/otel/trace v1.32.0 // indirect
40-
golang.org/x/net v0.32.0 // indirect
41-
golang.org/x/sys v0.28.0 // indirect
42-
golang.org/x/text v0.21.0 // indirect
36+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
37+
go.opentelemetry.io/otel v1.35.0 // indirect
38+
go.opentelemetry.io/otel/metric v1.35.0 // indirect
39+
go.opentelemetry.io/otel/sdk v1.35.0 // indirect
40+
go.opentelemetry.io/otel/trace v1.35.0 // indirect
41+
golang.org/x/net v0.39.0 // indirect
42+
golang.org/x/sys v0.32.0 // indirect
43+
golang.org/x/text v0.24.0 // indirect
4344
gopkg.in/ini.v1 v1.62.0 // indirect
4445
gopkg.in/yaml.v2 v2.4.0 // indirect
4546
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)