fix: swag version to install for docs generation

This commit is contained in:
allanice001
2025-11-06 03:38:52 +00:00
parent ea0b661dfd
commit 5bcc43d05a
3 changed files with 8110 additions and 7 deletions

View File

@@ -111,8 +111,8 @@ GO_SRCS := $(shell ( \
$(DOCS_JSON) $(DOCS_YAML): $(GO_SRCS) $(DOCS_JSON) $(DOCS_YAML): $(GO_SRCS)
@echo ">> Generating Swagger docs..." @echo ">> Generating Swagger docs..."
@if ! command -v swag >/dev/null 2>&1; then \ @if ! command -v swag >/dev/null 2>&1; then \
echo "Installing swag..."; \ echo "Installing swag/v2 CLI @v2.0.0-rc4..."; \
$(GOINSTALL) github.com/swaggo/swag/cmd/swag@latest; \ $(GOINSTALL) github.com/swaggo/swag/v2/cmd/swag@v2.0.0-rc4; \
fi fi
@rm -rf docs/swagger.* docs/docs.go @rm -rf docs/swagger.* docs/docs.go
@swag init -g $(MAIN) -o docs @swag init -g $(MAIN) -o docs

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long