diff --git a/Makefile b/Makefile index b4a2c159f..193168e0d 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ help: ##@other Show this help CGO_CFLAGS = -I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin GOBIN = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin +GOPATH ?= $(HOME)/go GIT_COMMIT = $(shell git rev-parse --short HEAD) AUTHOR = $(shell echo $$USER) @@ -163,7 +164,7 @@ endif install-os-dependencies: _assets/scripts/install_deps.sh -setup-dev: setup-build mock-install install-os-dependencies gen-install ##@other Prepare project for development +setup-dev: lint-install mock-install modvendor-install gen-install tidy install-os-dependencies ##@other Prepare project for development setup-build: lint-install release-install gomobile-install ##@other Prepare project for build @@ -239,7 +240,8 @@ modvendor-install: GO111MODULE=off go get -u github.com/adambabik/modvendor mock-install: ##@other Install mocking tools - go get github.com/golang/mock/mockgen@latest + # keep in sync with go.mod and github.com/golang/mock + go get github.com/golang/mock/mockgen@v1.4.1 mock: ##@other Regenerate mocks mockgen -package=fake -destination=transactions/fake/mock.go -source=transactions/fake/txservice.go diff --git a/_assets/scripts/install_deps.sh b/_assets/scripts/install_deps.sh index fa72c3c8d..7bd3a0a81 100755 --- a/_assets/scripts/install_deps.sh +++ b/_assets/scripts/install_deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -x "$(command -v apt)" ]; then apt install -y protobuf-compiler jq