From c7987a85008b87ee3b27ff5938d1f6845d0d11dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 25 Jul 2022 14:13:39 +0200 Subject: [PATCH] Makefile: remove PKG_LIST variable The `$PKG_LIST` variable was only used for running `go test`, and can be replaced with `./...`. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 778b4a88..3b36b6c2 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ VERSION := $(shell git describe --tags --dirty --always) # (because they're only committed after locally working, which means the # implementation has already been written). OAPI_VERSION := $(shell git describe --tags --always) -PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) LDFLAGS := -X ${PKG}/internal/appinfo.ApplicationVersion=${VERSION} BUILD_FLAGS = -ldflags="${LDFLAGS}" @@ -172,7 +171,7 @@ swagger-ui: test: # Ensure the web-static directory exists, so that `web/web_app.go` can embed something. mkdir -p ${WEB_STATIC} - go test -short ${PKG_LIST} + go test -short ./... clean: @go clean -i -x