Skip to content

Commit 4481ea4

Browse files
committed
fix: make lint&ci happy
1 parent 4aace20 commit 4481ea4

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.github/workflows/gomod2nix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
- name: Check out code into the Go module directory
2424
uses: actions/checkout@master
25+
with:
26+
fetch-depth: 0
2527

2628
- name: gomod2nix update
2729
run: |

.github/workflows/nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
fail-fast: true
2828
steps:
2929
- uses: actions/checkout@master
30+
with:
31+
fetch-depth: 0
3032
- name: Setup Go environment
3133
uses: actions/setup-go@master
3234
with:

.github/workflows/pull.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ jobs:
3232
uses: actions/checkout@v4
3333
with:
3434
ref: ${{ github.event.pull_request.head.sha }}
35+
fetch-depth: 0
3536

3637
- name: Tidy Modules
3738
run: |
3839
go mod tidy
39-
go generate main.go
40+
go generate main.go
4041
4142
- name: golangci-lint
4243
uses: golangci/golangci-lint-action@master

.github/workflows/push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
- name: Check out code into the Go module directory
1414
uses: actions/checkout@master
15+
with:
16+
fetch-depth: 0
1517

1618
- name: Tidy Modules
1719
run: |

0 commit comments

Comments
 (0)