get_vendor_deps does not require all the tools

- remove revision cmd
- rename ensure_tools to tools
This commit is contained in:
Anton Kaliaev
2017-12-04 17:37:50 -06:00
parent 440d76647d
commit 76cccfaabd
2 changed files with 13 additions and 13 deletions

View File

@ -60,25 +60,24 @@ get_deps:
grep -v /vendor/ | sort | uniq | \
xargs go get -v -d
get_vendor_deps: ensure_tools
update_deps:
@echo "--> Updating dependencies"
@go get -d -u ./...
get_vendor_deps:
@hash glide 2>/dev/null || go get github.com/Masterminds/glide
@rm -rf vendor/
@echo "--> Running glide install"
@glide install
update_deps: tools
@echo "--> Updating dependencies"
@go get -d -u ./...
revision:
-echo `git rev-parse --verify HEAD` > $(TMHOME)/revision
-echo `git rev-parse --verify HEAD` >> $(TMHOME)/revision_history
update_tools:
@echo "--> Updating tools"
@go get -u $(GOTOOLS)
tools:
go get -u -v $(GOTOOLS)
ensure_tools:
go get $(GOTOOLS)
test -f gometalinter & gometalinter --install
@echo "--> Installing tools"
@go get $(GOTOOLS)
@gometalinter --install
### Formatting, linting, and vetting

View File

@ -17,6 +17,7 @@ WORKDIR $REPO
ADD glide.yaml glide.yaml
ADD glide.lock glide.lock
ADD Makefile Makefile
RUN make tools
RUN make get_vendor_deps
# Install the apps