Skip to content

Commit

Permalink
(chore) install swag and use correct go bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Oct 21, 2024
1 parent 6b0000e commit 2f0b39a
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 @@ -2,6 +2,7 @@ G := $(shell go version | cut -d' ' -f 3,4 | sed 's/ /_/g')
V := $(shell git rev-parse --short HEAD)
APPVER := $(shell grep 'Version =' internal/version/version.go | cut -d \" -f2)
PWD := $(shell pwd)
GOPATH := $(shell go env GOPATH)
BUILD_TIME := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
LD_FLAGS := -trimpath \
-ldflags="-s -w \
Expand Down Expand Up @@ -31,8 +32,9 @@ check-npm:

# Generate a swagger.json used for the api documentation
api-doc:
~/go/bin/swag i --exclude ./web/ui --output web/docs
~/go/bin/swag f
go install github.com/swaggo/swag/cmd/swag@latest
$(GOPATH)/bin/swag i --exclude ./web/ui --output web/docs
$(GOPATH)/bin/swag f

# Run any tests
test:
Expand Down

0 comments on commit 2f0b39a

Please sign in to comment.