Skip to content

Commit 216d99c

Browse files
committed
feat: drop unsafe -checklinkname
1 parent 8101c02 commit 216d99c

File tree

7 files changed

+117
-99
lines changed

7 files changed

+117
-99
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
BINARY_PREFIX: "zbp_"
77
BINARY_SUFFIX: ""
88
PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request."
9-
LD_FLAGS: "-w -s -checklinkname=0"
9+
LD_FLAGS: "-w -s"
1010

1111
jobs:
1212
build:

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ builds:
2626
flags:
2727
- -trimpath
2828
ldflags:
29-
- -s -w -checklinkname=0
29+
- -s -w
3030
- id: win
3131
env:
3232
- CGO_ENABLED=0
@@ -39,7 +39,7 @@ builds:
3939
flags:
4040
- -trimpath
4141
ldflags:
42-
- -s -w -checklinkname=0
42+
- -s -w
4343

4444
checksum:
4545
name_template: "zbp_checksums.txt"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,15 +1693,15 @@ go generate main.go
16931693

16941694
```bash
16951695
# 本机平台
1696-
go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
1696+
go build -ldflags "-s -w" -o zerobot -trimpath
16971697
# x64 Linux 平台 如各种云服务器
1698-
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
1698+
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o zerobot -trimpath
16991699
# x64 Windows 平台 如大多数家用电脑
1700-
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -checklinkname=0" -o zerobot.exe -trimpath
1700+
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o zerobot.exe -trimpath
17011701
# armv6 Linux 平台 如树莓派 zero W
1702-
GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
1702+
GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath
17031703
# (由于引入了github.com/fumiama/sqlite3,本项不再可用)mips Linux 平台 如 路由器 wndr4300
1704-
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
1704+
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath
17051705
```
17061706

17071707
5. 运行 OneBot 框架,并同时运行本插件

go.mod

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
github.com/fumiama/gotracemoe v0.0.3
3030
github.com/fumiama/jieba v0.0.0-20221203025406-36c17a10b565
3131
github.com/fumiama/slowdo v0.0.0-20241001074058-27c4fe5259a4
32-
github.com/fumiama/terasu v0.0.0-20251006080703-541b84ca4a5f
32+
github.com/fumiama/terasu v1.0.1
3333
github.com/fumiama/unibase2n v0.0.0-20240530074540-ec743fd5a6d6
3434
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
3535
github.com/google/uuid v1.6.0
@@ -48,59 +48,59 @@ require (
4848
github.com/wcharczuk/go-chart/v2 v2.1.2
4949
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20251002074418-56567b7fc282
5050
gitlab.com/gomidi/midi/v2 v2.3.16
51-
golang.org/x/image v0.31.0
52-
golang.org/x/sys v0.36.0
53-
golang.org/x/text v0.29.0
51+
golang.org/x/image v0.32.0
52+
golang.org/x/sys v0.37.0
53+
golang.org/x/text v0.30.0
5454
)
5555

5656
require (
57-
github.com/PuerkitoBio/goquery v1.8.0 // indirect
57+
github.com/PuerkitoBio/goquery v1.10.3 // indirect
5858
github.com/adamzy/cedar-go v0.0.0-20170805034717-80a9c64b256d // indirect
59-
github.com/ajstarks/svgo v0.0.0-20200320125537-f189e35d30ca // indirect
60-
github.com/andybalholm/cascadia v1.3.1 // indirect
61-
github.com/antchfx/xpath v1.3.3 // indirect
59+
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b // indirect
60+
github.com/andybalholm/cascadia v1.3.3 // indirect
61+
github.com/antchfx/xpath v1.3.5 // indirect
6262
github.com/dustin/go-humanize v1.0.1 // indirect
63-
github.com/ebitengine/oto/v3 v3.3.2 // indirect
64-
github.com/ebitengine/purego v0.8.0 // indirect
63+
github.com/ebitengine/oto/v3 v3.4.0 // indirect
64+
github.com/ebitengine/purego v0.9.0 // indirect
6565
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 // indirect
6666
github.com/fumiama/go-simple-protobuf v0.2.0 // indirect
6767
github.com/fumiama/gofastTEA v0.1.3 // indirect
6868
github.com/fumiama/imgsz v0.0.4 // indirect
6969
github.com/fumiama/orbyte v0.0.0-20251002065953-3bb358367eb5 // indirect
70-
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
71-
github.com/go-ole/go-ole v1.2.6 // indirect
72-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
70+
github.com/gabriel-vasile/mimetype v1.4.10 // indirect
71+
github.com/go-ole/go-ole v1.3.0 // indirect
72+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
7373
github.com/gopxl/beep/v2 v2.1.1 // indirect
7474
github.com/jfreymuth/oggvorbis v1.0.5 // indirect
7575
github.com/jfreymuth/vorbis v1.0.2 // indirect
7676
github.com/jinzhu/inflection v1.0.0 // indirect
7777
github.com/json-iterator/go v1.1.12 // indirect
7878
github.com/liuzl/cedar-go v0.0.0-20170805034717-80a9c64b256d // indirect
7979
github.com/liuzl/da v0.0.0-20180704015230-14771aad5b1d // indirect
80-
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
80+
github.com/lufia/plan9stats v0.0.0-20251013123823-9fd1530e3ec3 // indirect
8181
github.com/mattn/go-isatty v0.0.20 // indirect
82-
github.com/mmcdole/goxpp v1.1.1-0.20240225020742-a0c311522b23 // indirect
82+
github.com/mmcdole/goxpp v1.1.1 // indirect
8383
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8484
github.com/modern-go/reflect2 v1.0.2 // indirect
85-
github.com/ncruces/go-strftime v0.1.9 // indirect
85+
github.com/ncruces/go-strftime v1.0.0 // indirect
8686
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
8787
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
8888
github.com/pkumza/numcn v1.0.0 // indirect
89-
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
89+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
9090
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
91-
github.com/shoenig/go-m1cpu v0.1.6 // indirect
92-
github.com/tetratelabs/wazero v1.5.0 // indirect
93-
github.com/tidwall/match v1.1.1 // indirect
94-
github.com/tidwall/pretty v1.2.0 // indirect
95-
github.com/tklauser/go-sysconf v0.3.12 // indirect
96-
github.com/tklauser/numcpus v0.6.1 // indirect
91+
github.com/shoenig/go-m1cpu v0.1.7 // indirect
92+
github.com/tetratelabs/wazero v1.9.0 // indirect
93+
github.com/tidwall/match v1.2.0 // indirect
94+
github.com/tidwall/pretty v1.2.1 // indirect
95+
github.com/tklauser/go-sysconf v0.3.15 // indirect
96+
github.com/tklauser/numcpus v0.10.0 // indirect
9797
github.com/yusufpapurcu/wmi v1.2.4 // indirect
98-
golang.org/x/net v0.43.0 // indirect
98+
golang.org/x/net v0.46.0 // indirect
9999
gopkg.in/yaml.v3 v3.0.1 // indirect
100-
modernc.org/libc v1.61.0 // indirect
101-
modernc.org/mathutil v1.6.0 // indirect
102-
modernc.org/memory v1.8.0 // indirect
103-
modernc.org/sqlite v1.33.1 // indirect
100+
modernc.org/libc v1.66.10 // indirect
101+
modernc.org/mathutil v1.7.1 // indirect
102+
modernc.org/memory v1.11.0 // indirect
103+
modernc.org/sqlite v1.39.1 // indirect
104104
)
105105

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

0 commit comments

Comments
 (0)