Skip to content

Commit 6acc63f

Browse files
committed
Replace hack/verify-imports.sh with a single make recipe
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com> Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
1 parent 78c8b60 commit 6acc63f

2 files changed

Lines changed: 6 additions & 37 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,12 @@ test: ## Run unit tests
299299
fi
300300

301301
.PHONY: verify-imports
302-
verify-imports:
303-
hack/verify-imports.sh
302+
verify-imports: imports
303+
if ! git diff --quiet HEAD; then \
304+
git diff; \
305+
echo "You need to run 'make imports' to update the immport statement ordering and commit them"; \
306+
exit 1; \
307+
fi
304308

305309
.PHONY: verify-go-versions
306310
verify-go-versions:

hack/verify-imports.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)