From a19eb2afbd4c87f7361942eedd7bdc80f3e225cf Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Mon, 26 Dec 2022 16:38:29 -0500 Subject: Makefile: update `peach` and `test` targets Build and test with `-race` flag on. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6dd8753..b781683 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ PKGS=${MOD}/cache ${MOD}/client ${MOD}/nws ${MOD}/photon ${MOD}/time CSS=static/peach.min.css peach: vet fix fmt ${CSS} - go build ${BUILD_OPTS} + go build -race ${BUILD_OPTS} fmt: go fmt ${MOD} ${PKGS} @@ -21,7 +21,7 @@ vet: .PHONY: vet test: - go test ${PKGS} ${ARGS} + go test -race ${PKGS} ${ARGS} .PHONY: test ${CSS}: static/peach.css -- cgit v1.2.3