Skip to content

Commit

Permalink
Merge pull request #86 from supreeth7/update-mk
Browse files Browse the repository at this point in the history
Install dependencies directly to GOPATH
  • Loading branch information
openshift-merge-robot committed Jan 13, 2023
2 parents c3ec66b + 81b5ade commit 273ddf6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,23 @@ build:
install:
go build -o ${GOPATH}/bin/kite ./cmd/kite

.PHONY: mod
mod:
go mod tidy

.PHONY: vendor
vendor:
go mod vendor

.PHONY: tools
tools:
@mkdir -p $(GOPATH)/bin
@ls $(GOPATH)/bin/ginkgo 1>/dev/null || (echo "Installing ginkgo..." && go get -u github.com/onsi/ginkgo/ginkgo@v1.16.4)
@ls $(GOPATH)/bin/mockgen 1>/dev/null || (echo "Installing gomock..." && go get -u github.com/golang/mock/mockgen@v1.6.0)

# Sync the vendor dir for inconsistent vendoring
go mod tidy
go mod vendor
@ls $(GOPATH)/bin/ginkgo 1>/dev/null || (echo "Installing ginkgo..." && go install github.com/onsi/ginkgo/ginkgo@v1.16.4)
@ls $(GOPATH)/bin/mockgen 1>/dev/null || (echo "Installing gomock..." && go install github.com/golang/mock/mockgen@v1.6.0)

.PHONY: test
test: tools
$(GOPATH)/bin/ginkgo -v -r tests
test: mod vendor
go test ./... -covermode=atomic -coverpkg=./... -v

# Installed using instructions from: https://golangci-lint.run/usage/install/#linux-and-windows
getlint:
Expand Down

0 comments on commit 273ddf6

Please sign in to comment.