0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00

install swag instead of updating it in the go deps

go get -u <package> does an update of the go.mod and go.sum files; go
install <package> installs the binary at that location.

It seems the intent of this line in the makefile is to install swag if it
doesn't exist based on the ||, so let's actually install it, instead of
just updating the local deps.

This also has the advantage of not immediately generating a diff when
someone doesn't have swag installed.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
This commit is contained in:
Tycho Andersen 2019-09-03 14:21:05 -06:00
parent 276d4be5db
commit 3a211889da

View file

@ -25,7 +25,7 @@ check:
golangci-lint run --enable-all ./cmd/... ./pkg/...
docs/docs.go:
swag -v || go get -u github.com/swaggo/swag/cmd/swag
swag -v || go install github.com/swaggo/swag/cmd/swag
swag init -g pkg/api/routes.go
.PHONY: doc