diff --git a/Makefile b/Makefile
index 7ee5716ad29816581aa3d976cdb3088382bab51b..313acb917adef87c6184f67aea20feb99dce15a8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ install: gitlab-workhorse
 
 .PHONY: test
 test: test/data/test.git
+	go fmt | awk '{ print "Please run go fmt"; exit 1 }'
 	go test
 
 test/data/test.git: test/data