Skip to content

Commit 06b8b51

Browse files
committed
fix: make lint&ci happy
1 parent aa67d09 commit 06b8b51

File tree

5 files changed

+6
-44
lines changed

5 files changed

+6
-44
lines changed

.github/workflows/nightly-docker.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 2 additions & 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"
9+
LD_FLAGS: "-w -s -checklinkname=0"
1010

1111
jobs:
1212
build:
@@ -45,6 +45,7 @@ jobs:
4545
GOARCH: ${{ matrix.goarch }}
4646
IS_PR: ${{ !!github.head_ref }}
4747
run: |
48+
if [ ! -f custom/register.go ]; then touch custom/register.go; fi
4849
go generate ./...
4950
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi
5051
if $IS_PR ; then echo $PR_PROMPT; fi

.github/workflows/pull.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- name: Tidy Modules
3737
run: |
3838
go mod tidy
39+
if [ ! -f custom/register.go ]; then touch custom/register.go; fi
3940
go generate ./...
4041
4142
- name: golangci-lint

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Tidy Modules
1717
run: |
1818
go mod tidy
19+
if [ ! -f custom/register.go ]; then touch custom/register.go; fi
1920
go generate ./...
2021
2122
- name: Run Lint

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
before:
55
hooks:
66
- go mod tidy
7+
- if [ ! -f custom/register.go ]; then touch custom/register.go; fi
78
- go generate ./...
89
- go install github.com/tc-hib/go-winres@latest
910
- go-winres make
@@ -26,7 +27,7 @@ builds:
2627
flags:
2728
- -trimpath
2829
ldflags:
29-
- -s -w
30+
- -s -w -checklinkname=0
3031
- id: win
3132
env:
3233
- CGO_ENABLED=0

0 commit comments

Comments
 (0)