Skip to content

Commit

Permalink
chore(ci): ignore snippet go.mod in vet check (#7981)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz authored May 23, 2023
1 parent 53d8d68 commit 2296f00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/vet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ for i in $(find . -name go.mod); do
go mod tidy
popd
done
git diff '*go.mod' | tee /dev/stderr | (! read)
git diff '*go.sum' | tee /dev/stderr | (! read)

# Documentation for the :^ pathspec can be found at:
# https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec
git diff '*go.mod' :^internal/generated/snippets | tee /dev/stderr | (! read)
git diff '*go.sum' :^internal/generated/snippets | tee /dev/stderr | (! read)

gofmt -s -d -l . 2>&1 | tee /dev/stderr | (! read)
goimports -l . 2>&1 | tee /dev/stderr | (! read)
Expand Down

0 comments on commit 2296f00

Please sign in to comment.