Skip to content

Commit 3897fd6

Browse files
keitherenon
authored andcommitted
Fix clang-tidy config symlinking
Something about escaping this variable was wrong, but you only saw that if your config file wasn't already in the root of the repo.
1 parent da98651 commit 3897fd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang_tidy/clang_tidy_test.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ def _clang_tidy_rule_impl(ctx):
5757
set -euo pipefail
5858
5959
readonly bin="{clang_tidy_bin}"
60-
readonly config="{clang_tidy_config}"
6160
62-
test -e .clang-tidy || ln -s -f \\$config .clang-tidy
61+
test -e .clang-tidy || ln -s -f "{clang_tidy_config}" .clang-tidy
6362
if [[ ! -f .clang-tidy ]]; then
6463
echo "error: failed to setup config" >&2
6564
exit 1

0 commit comments

Comments
 (0)