Skip to content

Commit

Permalink
swagger: install native swag
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Dec 3, 2024
1 parent 7c56c33 commit 0b35072
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ version: ## Print aptly version

swagger-install:
# Install swag
@test -f $(BINPATH)/swag || GOOS=linux GOARCH=amd64 go install github.com/swaggo/swag/cmd/swag@latest
@test -f $(BINPATH)/swag || GOOS= GOARCH= go install github.com/swaggo/swag/cmd/swag@latest
# Generate swagger.conf
cp docs/swagger.conf.tpl docs/swagger.conf
echo "// @version $(VERSION)" >> docs/swagger.conf
Expand Down Expand Up @@ -79,7 +79,9 @@ build: prepare swagger ## Build aptly

install:
@echo "\e[33m\e[1mBuilding aptly ...\e[0m"
go generate
# go generate
@go generate
# go install -v
@out=`mktemp`; if ! go install -v > $$out 2>&1; then cat $$out; rm -f $$out; echo "\nBuild failed\n"; exit 1; else rm -f $$out; fi

test: prepare swagger etcd-install ## Run unit tests
Expand Down

0 comments on commit 0b35072

Please sign in to comment.