Skip to content

Commit b86f239

Browse files
committed
Use go mod tidy --diff to validate go.mod
The "-diff" flag was added in Go 1.23 and does the right thing in a single command.
1 parent 65fbd61 commit b86f239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with: { go-version: stable }
2121

2222
- name: Ensure go.mod is tidy
23-
run: go mod tidy && git diff --exit-code -- go.mod
23+
run: go mod tidy --diff
2424
- name: Ensure generated files are committed
2525
run: make check-generate
2626
- run: make check

0 commit comments

Comments
 (0)