From 70900db661d91e00f92dd4feba9ffbe3accd21ee Mon Sep 17 00:00:00 2001 From: Aviral Goel Date: Thu, 10 Jul 2025 13:00:47 -0400 Subject: [PATCH] fix(precommit_install): fix bug for bare metal machines (#2448) Co-authored-by: Max Podkorytov <4273004+tenpercent@users.noreply.github.com> [ROCm/composable_kernel commit: a26ba690fd08aa6b6aef967a39f857292ab2b8bd] --- script/install_precommit.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/install_precommit.sh b/script/install_precommit.sh index 83e526035c..6132f6a287 100755 --- a/script/install_precommit.sh +++ b/script/install_precommit.sh @@ -9,13 +9,13 @@ run_and_check() { return $status } -echo "I: Installing tools required for pre-commit checks..." -run_and_check apt install clang-format-12 - echo "I: Creating and activating virtual environment for pre-commit..." python3 -m venv "$(dirname "$0")/../.venv" source "$(dirname "$0")/../.venv/bin/activate" +echo "I: Installing tools required for pre-commit checks..." +run_and_check pip install dos2unix +run_and_check pip install clang-format==12.0.1 echo "I: Installing pre-commit in virtual environment..." run_and_check pip install pre-commit run_and_check pre-commit install