Skip to content

Commit

Permalink
feat(make): ensures dep is installed first to align ginkgo version
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Dec 11, 2019
1 parent 5b03b09 commit 0e947b1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,17 @@ $(BINARY_DIR)/$(BINARY_NAME): $(BINARY_DIR) $(SRCS)
${GOBUILD} go build -ldflags ${LDFLAGS} -o $@ ./cmd

##@ Setup
.PHONY: install-dep
install-dep:
go get -u github.com/golang/dep/cmd/dep

.PHONY: tools
tools: ## Installs required go tools
tools: install-dep ## Installs required go tools
$(call header,"Installing required tools")
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
GO111MODULE=on go get -u github.com/golangci/golangci-lint/cmd/golangci-lint@v1.19.1
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/onsi/ginkgo/ginkgo
$(eval GINKGO_VERSION:=$(shell dep status -f='{{if eq .ProjectRoot "github.com/onsi/ginkgo"}}{{.Version}}{{end}}'))
GO111MODULE=on go get -u github.com/onsi/ginkgo/ginkgo@$(GINKGO_VERSION)

EXECUTABLES:=dep golangci-lint goimports ginkgo
CHECK:=$(foreach exec,$(EXECUTABLES),\
Expand Down

0 comments on commit 0e947b1

Please sign in to comment.