Skip to content

Apache DataFusion SQL Query Engine

ARROW-5245: [CI][C++] Unpin cmake format (current version is 5.1)

Micah Kornfielda33504662a96
diff --git a/ci/travis_lint.sh b/ci/travis_lint.sh
index eb0ef43ff2..1c36eaf08a 100755
--- a/ci/travis_lint.sh
+++ b/ci/travis_lint.sh
@@ -31,7 +31,7 @@ pre-commit install
pre-commit run hadolint -a
# CMake formatting check
-pip install cmake_format==0.4.5
+pip install cmake_format
$TRAVIS_BUILD_DIR/run-cmake-format.py --check
# C++ code linting
diff --git a/run-cmake-format.py b/run-cmake-format.py
index decb82bcaa..d572432190 100755
--- a/run-cmake-format.py
+++ b/run-cmake-format.py
@@ -70,7 +70,9 @@ def find_cmake_files():
def run_cmake_format(paths):
# cmake-format is fast enough that running in parallel doesn't seem
# necessary
- cmd = ['cmake-format', '--in-place'] + paths
+ # autosort is off because it breaks in cmake_format 5.1
+ # See: https://github.com/cheshirekow/cmake_format/issues/111
+ cmd = ['cmake-format', '--in-place', '--autosort=false'] + paths
try:
subprocess.run(cmd, check=True)
except FileNotFoundError: