Skip to content

Commit

Permalink
ensure gopath
Browse files Browse the repository at this point in the history
  • Loading branch information
ubogdan committed Nov 12, 2019
1 parent 5c6e7d1 commit 70354cc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Expand Up @@ -57,7 +57,7 @@ clean:
rm -f $(BINARY_NAME)

.PHONY: deps
deps:
deps: ensure-gopath
$(GOGET) github.com/swaggo/cli
$(GOGET) github.com/ghodss/yaml
$(GOGET) github.com/KyleBanks/depth
Expand All @@ -67,12 +67,15 @@ deps:
$(GOGET) github.com/alecthomas/template

.PHONY: devel-deps
devel-deps:
devel-deps: ensure-gopath
GO111MODULE=off $(GOGET) -v -u \
golang.org/x/lint/golint

.PHONY: ensure-gopath
ensure-gopath:
mkdir -p ${GOPATH}/github.com/swaggo
if [ -L ${GOPATH}/github.com/swaggo/swag ]; then rm ${GOPATH}/github.com/swaggo/swag; fi
ln -s "$(shell pwd)" ${GOPATH}/github.com/swaggo/swag
GO111MODULE=off $(GOGET) -v -u \
golang.org/x/lint/golint

.PHONY: lint
lint: devel-deps
Expand Down

0 comments on commit 70354cc

Please sign in to comment.