From ee7cb8b69583db417b187b53f4765c3a403cd4cf Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Thu, 13 Aug 2020 10:30:05 +0900 Subject: Makefile: try to install clang-tidy package explicitly Commit 43f1389ddccb58a4 ("Makefile: enable clang-tidy in presubmit tests") added clang-tidy to only tools/docker/env/Dockerfile file. We should try to explicitly install clang-tidy in Makefile for those who don't use docker. /bin/sh: 1: clang-tidy: not found (...snipped...) Makefile:250: recipe for target 'tidy' failed make[2]: *** [tidy] Error 127 make[2]: *** Waiting for unfinished jobs.... (...snipped...) Makefile:269: recipe for target 'presubmit_smoke' failed make[1]: *** [presubmit_smoke] Error 2 Makefile:264: recipe for target 'presubmit' failed make: *** [presubmit] Error 2 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d7e8b6239..bf3f11276 100644 --- a/Makefile +++ b/Makefile @@ -335,6 +335,7 @@ install_prerequisites: sudo apt-get install -y -q g++-mips64el-linux-gnuabi64 || true sudo apt-get install -y -q g++-s390x-linux-gnu || true sudo apt-get install -y -q g++-riscv64-linux-gnu || true + sudo apt-get install -y -q clang-tidy || true sudo apt-get install -y -q clang clang-format ragel GO111MODULE=off go get -u golang.org/x/tools/cmd/goyacc -- cgit mrf-deployment