Merge pull request #16670 from fuweid/fix-make-fix

.github: ensure there is no change after make-fix
This commit is contained in:
Benjamin Wang 2023-09-30 13:24:59 +01:00 committed by GitHub
commit ddf9756807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -30,3 +30,13 @@ jobs:
set -euo pipefail
make fix
DIFF=$(git status --porcelain)
if [ -n "$DIFF" ]; then
echo "These files were modified:"
echo
echo "$DIFF"
echo
exit 1
fi

View File

@ -23,7 +23,7 @@ linters:
- staticcheck
- stylecheck
- unused
- unconvert # Remove unnecessary type conversions
- unconvert # Remove unnecessary type conversions
linters-settings: # please keep this alphabetized
goimports:
local-prefixes: go.etcd.io # Put imports beginning with prefix after 3rd-party packages.