From ab52676f230cc2a90aa81e630a304a4a91d2203f Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 7 Jun 2022 18:04:56 -0400 Subject: [PATCH] build: Prevent Makefile test target from accidentally targeting test folder --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ccb0f6be..5a782f34 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ BINARY=gatus +# Because there's a folder called "test", we need to make the target "test" phony +.PHONY: test + install: go build -mod vendor -o $(BINARY) . @@ -10,7 +13,7 @@ clean: rm $(BINARY) test: - sudo go test ./alerting/... ./client/... ./config/... ./controller/... ./core/... ./jsonpath/... ./pattern/... ./security/... ./storage/... ./util/... ./watchdog/... -cover + go test ./... -cover ##########