File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 2424 extra_args : >
2525 buildifier --all-files 2>&1 ||
2626 (
27- echo -e "In order to format all bazel files, please run:\n bazel run //misc/bazel: buildifier"; exit 1
27+ echo -e "In order to format all bazel files, please run:\n bazel run //misc/bazel/ buildifier"; exit 1
2828 )
Original file line number Diff line number Diff line change 2626 name : Format bazel files
2727 files : \.(bazel|bzl)
2828 language : system
29- entry : bazel run //misc/bazel: buildifier
29+ entry : bazel run //misc/bazel/ buildifier
3030 pass_filenames : false
3131
3232# DISABLED: can be enabled by copying this config and installing `pre-commit` with `--config` on the copy
Original file line number Diff line number Diff line change 1- load ("@buildifier_prebuilt//:rules.bzl" , "buildifier" )
2-
3- buildifier (
4- name = "buildifier" ,
5- exclude_patterns = [
6- "./.git/*" ,
7- ],
8- lint_mode = "fix" ,
9- )
10-
111sh_library (
122 name = "sh_runfiles" ,
133 srcs = ["runfiles.sh" ],
Original file line number Diff line number Diff line change 1+ load ("@buildifier_prebuilt//:rules.bzl" , "buildifier" )
2+
3+ buildifier (
4+ name = "buildifier" ,
5+ exclude_patterns = [
6+ "./.git/*" ,
7+ ],
8+ lint_mode = "fix" ,
9+ )
Original file line number Diff line number Diff line change 22
33set -eu
44
5- . misc/bazel/runfiles.sh
5+ source misc/bazel/runfiles.sh 2> /dev/null || source external/ql~/ misc/bazel/runfiles.sh
66
77dest=" ${2:- $HOME / .local/ bin} "
88
You can’t perform that action at this time.
0 commit comments