From 997ffe9c317741071a96797ffbeb67826ec027a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Wed, 2 Oct 2024 20:26:54 +0200 Subject: [PATCH] system-tests: install swag only if needed --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7d373df4..e1445127 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ docker-test: ## Run system tests @rm -f aptly.test go generate # install and initialize swagger - go install github.com/swaggo/swag/cmd/swag@latest + test -f $(BINPATH)/swag || go install github.com/swaggo/swag/cmd/swag@latest PATH=$(BINPATH)/:$(PATH) swag init # build coverage binary go test -v -coverpkg="./..." -c -tags testruncli