mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
build: ensure make go-build-image target builds tools in isolation (#10534)
This commit is contained in:
parent
68c4c232a1
commit
21e855d860
@ -8,6 +8,14 @@ ARG GOTOOLS="github.com/elazarl/go-bindata-assetfs/... \
|
|||||||
github.com/axw/gocov/gocov \
|
github.com/axw/gocov/gocov \
|
||||||
gopkg.in/matm/v1/gocov-html"
|
gopkg.in/matm/v1/gocov-html"
|
||||||
|
|
||||||
RUN GO111MODULE=on go get -v ${GOTOOLS} && mkdir -p /consul
|
RUN mkdir -p .gotools && \
|
||||||
|
cd .gotools && \
|
||||||
|
for tool in ${GOTOOLS}; do \
|
||||||
|
echo "=== TOOL: ${tool}" ; \
|
||||||
|
rm -rf go.mod go.sum ; \
|
||||||
|
go mod init consul-tools ; \
|
||||||
|
go get -v "${tool}" ; \
|
||||||
|
done && \
|
||||||
|
rm -rf go.mod go.sum
|
||||||
|
|
||||||
WORKDIR /consul
|
WORKDIR /consul
|
||||||
|
Loading…
x
Reference in New Issue
Block a user