Skip to content

Commit

Permalink
go: Install swag if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Sep 13, 2024
1 parent ff5baf5 commit 48be74b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ SHELL=/bin/bash

CB_SPIDER_COMMIT_HASH="7c75d80e8d275d7c137b33a22b2107829eff91b1"

GOPROXY_OPTION := GOPROXY=direct
GO_COMMAND := ${GOPROXY_OPTION} go
GOPATH := $(shell go env GOPATH)

default:
@if [ ! -f "${GOPATH}/bin/swag" ] && [ ! -f "$(GOROOT)/bin/swag" ]; then \
echo "[*] Installing swag..."; \
${GO_COMMAND} install github.com/swaggo/swag/cmd/swag@latest; \
fi
@echo "[*] Cloning CB-Spider..."
@if [ ! -d "./cb-spider" ]; then \
git clone https://github.com/cloud-barista/cb-spider; \
Expand Down

0 comments on commit 48be74b

Please sign in to comment.