From f02a2c64a905570288d5d371e64791f080b8560b Mon Sep 17 00:00:00 2001 From: mlevesquedion Date: Thu, 22 Feb 2024 15:30:45 -0800 Subject: [PATCH] Print clang-format version in CI (#2032) The version of clang-format available in CI seems to be different from the one on my machine, but I can't easily see what the version of clang-format running in CI is, so I can't really debug. Print the version so that moving forward if someone runs afoul of the check they can repro and fix. --- build_tools/github_actions/lint_clang_format.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_tools/github_actions/lint_clang_format.sh b/build_tools/github_actions/lint_clang_format.sh index 10c1b2d43fe..146d72affed 100755 --- a/build_tools/github_actions/lint_clang_format.sh +++ b/build_tools/github_actions/lint_clang_format.sh @@ -39,6 +39,8 @@ if [[ $# -ne 0 ]] ; then exit 1 fi +clang-format --version + echo "Gathering changed files..." mapfile -t CHANGED_FILES < <(git diff "$BASE_BRANCH" HEAD --name-only --diff-filter=d | grep '.*\.h\|.*\.cpp') if (( ${#CHANGED_FILES[@]} == 0 )); then