mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 13:21:20 +00:00
get_vendor_deps does not require all the tools
- remove revision cmd - rename ensure_tools to tools
This commit is contained in:
25
Makefile
25
Makefile
@ -60,25 +60,24 @@ get_deps:
|
|||||||
grep -v /vendor/ | sort | uniq | \
|
grep -v /vendor/ | sort | uniq | \
|
||||||
xargs go get -v -d
|
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/
|
@rm -rf vendor/
|
||||||
@echo "--> Running glide install"
|
@echo "--> Running glide install"
|
||||||
@glide install
|
@glide install
|
||||||
|
|
||||||
update_deps: tools
|
update_tools:
|
||||||
@echo "--> Updating dependencies"
|
@echo "--> Updating tools"
|
||||||
@go get -d -u ./...
|
@go get -u $(GOTOOLS)
|
||||||
|
|
||||||
revision:
|
|
||||||
-echo `git rev-parse --verify HEAD` > $(TMHOME)/revision
|
|
||||||
-echo `git rev-parse --verify HEAD` >> $(TMHOME)/revision_history
|
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
go get -u -v $(GOTOOLS)
|
@echo "--> Installing tools"
|
||||||
|
@go get $(GOTOOLS)
|
||||||
ensure_tools:
|
@gometalinter --install
|
||||||
go get $(GOTOOLS)
|
|
||||||
test -f gometalinter & gometalinter --install
|
|
||||||
|
|
||||||
### Formatting, linting, and vetting
|
### Formatting, linting, and vetting
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ WORKDIR $REPO
|
|||||||
ADD glide.yaml glide.yaml
|
ADD glide.yaml glide.yaml
|
||||||
ADD glide.lock glide.lock
|
ADD glide.lock glide.lock
|
||||||
ADD Makefile Makefile
|
ADD Makefile Makefile
|
||||||
|
RUN make tools
|
||||||
RUN make get_vendor_deps
|
RUN make get_vendor_deps
|
||||||
|
|
||||||
# Install the apps
|
# Install the apps
|
||||||
|
Reference in New Issue
Block a user