Sha256: f32e5d9c709a8af8627ae00b627b0aadf44c8322ad4dbd6dcabff74e46b5c83a

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 Bytes

Contents

#!/usr/bin/env bash

. "$(dirname "${BASH_SOURCE[0]}")/../.evergreen/init.sh"

: "${CLANG_FORMAT_VERSION:=15.0.7}"
export PIPX_HOME="${BUILD_CACHE_DIR}/pipx"

if ! run_python -c ''; then
  fail "No Python found?"
fi

# Check that we have a pipx of the proper version:
run_python -c 'import pkg_resources; pkg_resources.require("pipx>=0.17.0<2.0")'

# Give default clang-format an empty string on stdin if there are no inputs files
printf '' | run_python -m pipx run "clang-format==${CLANG_FORMAT_VERSION:?}" "$@"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libmongocrypt-helper-1.8.0.0.1001 ext/libmongocrypt/libmongocrypt/etc/format.sh