mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
fix: swag version to install for docs generation
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||||
|
|||||||
4057
docs/docs.go
4057
docs/docs.go
File diff suppressed because one or more lines are too long
4056
docs/swagger.json
4056
docs/swagger.json
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user