diff --git a/Makefile b/Makefile index b21bc2ecb..d48851bb7 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ clean: ## cleans output directory $(shell rm -rf $(BIN_OUT_DIR)/*) swagger: ## creates swagger documentation as html file - go get github.com/swaggo/swag/cmd/swag@v1.6.9 + go install github.com/swaggo/swag/cmd/swag@v1.6.9 npm install bootprint bootprint-openapi html-inline $(shell go env GOPATH)/bin/swag init -g api/api.go $(shell) node_modules/bootprint/bin/bootprint.js openapi docs/swagger.json /tmp/swagger/ @@ -29,6 +29,7 @@ test: ## run tests go test -v -coverprofile=coverage.txt -covermode=atomic -cover ./... lint: build ## run golangcli-lint checks + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1 $(shell go env GOPATH)/bin/golangci-lint run run: build ## Build and run binary