mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-02 22:21:44 +00:00
makefile: Add make check_dep
and remove make ensure_deps
(#2055)
This adds a new makefile command, which is used in CI linting, `make check_dep`. This ensures the toml is in sync with the lock, and that were not pinning to a branch in any repository. This also adapts `make get_vendor_deps` to check the lock, in addition to populating the vendor directory. This removes the need for `make ensure_deps`. This makes `make get_vendor_deps` consistent between tendermint and the sdk.
This commit is contained in:
committed by
Alexander Simmerl
parent
d212292f86
commit
9cfc47a93b
@ -13,18 +13,14 @@ ENV REPO $GOPATH/src/github.com/tendermint/tendermint
|
||||
ENV GOBIN $GOPATH/bin
|
||||
WORKDIR $REPO
|
||||
|
||||
# Install the vendored dependencies before copying code
|
||||
# Copy in the code
|
||||
COPY . $REPO
|
||||
|
||||
# Install the vendored dependencies
|
||||
# docker caching prevents reinstall on code change!
|
||||
ADD Gopkg.toml Gopkg.toml
|
||||
ADD Gopkg.lock Gopkg.lock
|
||||
ADD Makefile Makefile
|
||||
RUN make get_tools
|
||||
RUN make get_vendor_deps
|
||||
|
||||
# Now copy in the code
|
||||
# NOTE: this will overwrite whatever is in vendor/
|
||||
COPY . $REPO
|
||||
|
||||
RUN go install ./cmd/tendermint
|
||||
RUN go install ./abci/cmd/abci-cli
|
||||
|
||||
|
Reference in New Issue
Block a user