Skip to content

Commit d724f6d

Browse files
committed
chore: update deps
1 parent 4cfa0de commit d724f6d

File tree

11 files changed

+213
-213
lines changed

11 files changed

+213
-213
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
go-version: '1.20'
3434
- name: Cache downloaded module
3535
uses: actions/cache@master
36+
continue-on-error: true
3637
with:
3738
path: |
3839
~/.cache/go-build
@@ -54,4 +55,4 @@ jobs:
5455
if: ${{ !github.head_ref }}
5556
with:
5657
name: ${{ matrix.goos }}_${{ matrix.goarch }}
57-
path: output/
58+
path: output/

.github/workflows/pull.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: PullLint
2-
on: [ pull_request ]
2+
on:
3+
pull_request_target:
4+
types: [assigned, opened, synchronize, reopened]
35
jobs:
46
golangci:
57
name: lint
@@ -11,7 +13,12 @@ jobs:
1113
go-version: '1.20'
1214

1315
- name: Check out code into the Go module directory
14-
uses: actions/checkout@master
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.head.sha }}
19+
20+
- name: Tidy Modules
21+
run: go mod tidy
1522

1623
- name: golangci-lint
1724
uses: golangci/golangci-lint-action@master
@@ -32,4 +39,4 @@ jobs:
3239
# skip-pkg-cache: true
3340

3441
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
35-
# skip-build-cache: true
42+
# skip-build-cache: true

.github/workflows/push.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
- name: Check out code into the Go module directory
1414
uses: actions/checkout@master
1515

16-
- name: golangci-lint
16+
- name: Tidy Modules
17+
run: go mod tidy
18+
19+
- name: Run Lint
1720
uses: golangci/golangci-lint-action@master
1821
with:
1922
version: latest
@@ -25,8 +28,9 @@ jobs:
2528
git config --local user.name 'github-actions[bot]'
2629
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
2730
git add --all
28-
git commit -m "🎨 改进代码样式"
31+
git commit -m "chore(lint): 改进代码样式"
32+
2933
- name: Create Pull Request
3034
if: ${{ !github.head_ref }}
3135
continue-on-error: true
32-
uses: peter-evans/create-pull-request@v4
36+
uses: peter-evans/create-pull-request@v4

.golangci.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
11
linters-settings:
2-
depguard:
3-
rules:
4-
main:
5-
files:
6-
- $all
7-
- "!$test"
8-
allow:
9-
- $gostd
10-
- github.com/FloatTech
11-
- github.com/wdvxdr1123
12-
- github.com/fumiama
13-
- github.com/tidwall
14-
- jaytaylor.com/html2text
15-
- github.com/glebarez
16-
- github.com/sirupsen
17-
- github.com/gorilla
18-
- github.com/guohuiyuan
19-
- github.com/MoYoez
20-
- github.com/disintegration
21-
- github.com/playwright-community
22-
- github.com/mmcdole
23-
- github.com/go-resty
24-
- github.com/patrickmn
25-
- github.com/golang
26-
- github.com/wcharczuk
27-
282
errcheck:
29-
ignore: fmt:.*
303
ignoretests: true
314

325
goimports:
@@ -44,11 +17,10 @@ linters:
4417
fast: false
4518
enable:
4619
- bodyclose
47-
#- deadcode
48-
- depguard
20+
#- depguard
4921
- dogsled
5022
- errcheck
51-
- exportloopref
23+
#- exportloopref
5224
- exhaustive
5325
#- funlen
5426
#- goconst
@@ -65,13 +37,11 @@ linters:
6537
- nolintlint
6638
- rowserrcheck
6739
- staticcheck
68-
#- structcheck
6940
- stylecheck
7041
- typecheck
7142
- unconvert
7243
- unparam
7344
- unused
74-
#- varcheck
7545
- whitespace
7646
- prealloc
7747
- predeclared
@@ -102,3 +72,4 @@ issues:
10272
exclude-use-default: false
10373
exclude:
10474
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
75+
- 'identifier ".*" contain non-ASCII character: U\+.*'

example/JiangRed/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func init() {
170170
}
171171

172172
// randText 随机文本
173-
func randText(text ...string) message.MessageSegment {
173+
func randText(text ...string) message.Segment {
174174
return message.Text(text[rand.Intn(len(text))])
175175
}
176176

go.mod

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ module github.com/FloatTech/ZeroBot-Plugin-Playground
33
go 1.20
44

55
require (
6-
github.com/FloatTech/AnimeAPI v1.7.1-0.20240530072450-71c23d2f01f8
7-
github.com/FloatTech/floatbox v0.0.0-20240505082030-226ec6713e14
8-
github.com/FloatTech/gg v1.1.2
9-
github.com/FloatTech/imgfactory v0.2.2-0.20230315152233-49741fc994f9
10-
github.com/FloatTech/rendercard v0.0.10-0.20230223064326-45d29fa4ede9
11-
github.com/FloatTech/sqlite v1.6.3
12-
github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1
13-
github.com/FloatTech/zbpctrl v1.6.1
14-
github.com/FloatTech/zbputils v1.7.2-0.20240530064059-af6f6773ba94
6+
github.com/FloatTech/AnimeAPI v1.7.1-0.20250423082452-e16339a3962c
7+
github.com/FloatTech/floatbox v0.0.0-20250513111443-adba80e84e80
8+
github.com/FloatTech/gg v1.1.3
9+
github.com/FloatTech/imgfactory v0.2.2-0.20230413152719-e101cc3606ef
10+
github.com/FloatTech/rendercard v0.2.0
11+
github.com/FloatTech/sqlite v1.7.1
12+
github.com/FloatTech/ttl v0.0.0-20240716161252-965925764562
13+
github.com/FloatTech/zbpctrl v1.7.0
14+
github.com/FloatTech/zbputils v1.7.2-0.20250330125231-d8be1c9d3b9c
1515
github.com/disintegration/imaging v1.6.2
1616
github.com/fumiama/jieba v0.0.0-20221203025406-36c17a10b565
1717
github.com/glebarez/sqlite v1.11.0
18-
github.com/go-resty/resty/v2 v2.13.1
18+
github.com/go-resty/resty/v2 v2.16.5
1919
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
20-
github.com/gorilla/websocket v1.5.1
20+
github.com/gorilla/websocket v1.5.3
2121
github.com/guohuiyuan/go-fyzhq v0.0.0-20220807135412-25c16c843e5a
2222
github.com/mmcdole/gofeed v1.3.0
2323
github.com/patrickmn/go-cache v2.1.0+incompatible
2424
github.com/playwright-community/playwright-go v0.4201.1
2525
github.com/sirupsen/logrus v1.9.3
26-
github.com/tidwall/gjson v1.17.1
27-
github.com/wcharczuk/go-chart/v2 v2.1.1
28-
github.com/wdvxdr1123/ZeroBot v1.7.5-0.20240505070304-562ffeb33dcd
29-
golang.org/x/sys v0.20.0
30-
gorm.io/gorm v1.25.10
26+
github.com/tidwall/gjson v1.18.0
27+
github.com/wcharczuk/go-chart/v2 v2.1.2
28+
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250330133859-27c25d9412b5
29+
golang.org/x/sys v0.30.0
30+
gorm.io/gorm v1.26.1
3131
jaytaylor.com/html2text v0.0.0-20230321000545-74c2419ad056
3232
)
3333

@@ -36,8 +36,7 @@ require (
3636
github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7 // indirect
3737
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5 // indirect
3838
github.com/andybalholm/cascadia v1.3.2 // indirect
39-
github.com/blend/go-sdk v1.20220411.3 // indirect
40-
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
39+
github.com/deckarep/golang-set/v2 v2.7.0 // indirect
4140
github.com/dustin/go-humanize v1.0.1 // indirect
4241
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 // indirect
4342
github.com/fumiama/cron v1.3.0 // indirect
@@ -46,9 +45,10 @@ require (
4645
github.com/fumiama/go-simple-protobuf v0.2.0 // indirect
4746
github.com/fumiama/gofastTEA v0.0.10 // indirect
4847
github.com/fumiama/imgsz v0.0.4 // indirect
49-
github.com/fumiama/terasu v0.0.0-20240507144117-547a591149c0 // indirect
48+
github.com/fumiama/terasu v0.0.0-20241027183601-987ab91031ce // indirect
5049
github.com/glebarez/go-sqlite v1.22.0 // indirect
51-
github.com/go-jose/go-jose/v3 v3.0.1 // indirect
50+
github.com/go-ego/gse v0.80.3 // indirect
51+
github.com/go-jose/go-jose/v3 v3.0.4 // indirect
5252
github.com/go-stack/stack v1.8.1 // indirect
5353
github.com/google/uuid v1.6.0 // indirect
5454
github.com/jinzhu/inflection v1.0.0 // indirect
@@ -68,15 +68,16 @@ require (
6868
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
6969
github.com/tidwall/match v1.1.1 // indirect
7070
github.com/tidwall/pretty v1.2.1 // indirect
71+
github.com/vcaesar/cedar v0.20.2 // indirect
7172
go.uber.org/multierr v1.11.0 // indirect
7273
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect
73-
golang.org/x/image v0.16.0 // indirect
74-
golang.org/x/net v0.25.0 // indirect
75-
golang.org/x/text v0.15.0 // indirect
76-
modernc.org/libc v1.50.9 // indirect
74+
golang.org/x/image v0.24.0 // indirect
75+
golang.org/x/net v0.33.0 // indirect
76+
golang.org/x/text v0.22.0 // indirect
77+
modernc.org/libc v1.61.0 // indirect
7778
modernc.org/mathutil v1.6.0 // indirect
7879
modernc.org/memory v1.8.0 // indirect
79-
modernc.org/sqlite v1.29.10 // indirect
80+
modernc.org/sqlite v1.33.1 // indirect
8081
)
8182

8283
replace modernc.org/sqlite => github.com/fumiama/sqlite3 v1.29.10-simp

0 commit comments

Comments
 (0)