build: ensure each tool is built separately (#10303)
This commit is contained in:
parent
c61e2bbda7
commit
2b8da141c0
|
@ -315,10 +315,12 @@ ui: ui-docker static-assets-docker
|
|||
|
||||
tools:
|
||||
@mkdir -p .gotools
|
||||
@cd .gotools && if [[ ! -f go.mod ]]; then \
|
||||
@cd .gotools && for TOOL in $(GOTOOLS); do \
|
||||
echo "=== TOOL: $$TOOL" ; \
|
||||
rm -f go.mod go.sum ; \
|
||||
go mod init consul-tools ; \
|
||||
fi
|
||||
cd .gotools && go get -v $(GOTOOLS)
|
||||
go get -v $$TOOL ; \
|
||||
done
|
||||
|
||||
version:
|
||||
@echo -n "Version: "
|
||||
|
|
Loading…
Reference in New Issue