Skip to content

Commit f163073

Browse files
authored
ci(dep): Check only for go.mod file (#1397)
This commit is to update go-mod github action step to check for only go.mod file. Ideally, both go.mod and go.sum should be checked, however, the current behavior of `go mod tidy` command will not clean up old entries in go.sum. Additionally, dependentbot is currently failing as there is dirty change in go.sum file.
1 parent 763b998 commit f163073

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check go mod
2222
run: |
2323
go mod tidy
24-
git diff --exit-code
24+
git diff --exit-code go.mod
2525
2626
# We already run the current golangci-lint in tests, but here we test
2727
# our GitHub action with the latest stable golangci-lint.

go.sum

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)