File tree Expand file tree Collapse file tree 6 files changed +13
-23
lines changed Expand file tree Collapse file tree 6 files changed +13
-23
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 @@ -9,5 +9,5 @@ sh_binary(
99 srcs = ["install.sh" ],
1010 args = ["$(rlocationpath :ripunzip)" ],
1111 data = [":ripunzip" ],
12- deps = ["@bazel_tools//tools/bash/runfiles " ],
12+ deps = ["//misc/bazel:sh_runfiles " ],
1313)
Original file line number Diff line number Diff line change 22
33set -eu
44
5- # --- begin runfiles.bash initialization v3 ---
6- # Copy-pasted from the Bazel Bash runfiles library v3.
7- set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash
8- source " ${RUNFILES_DIR:-/ dev/ null} /$f " 2> /dev/null || \
9- source " $( grep -sm1 " ^$f " " ${RUNFILES_MANIFEST_FILE:-/ dev/ null} " | cut -f2- -d' ' ) " 2> /dev/null || \
10- source " $0 .runfiles/$f " 2> /dev/null || \
11- source " $( grep -sm1 " ^$f " " $0 .runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null || \
12- source " $( grep -sm1 " ^$f " " $0 .exe.runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null || \
13- { echo>&2 " ERROR: cannot find $f " ; exit 1; }; f=; set -e
14- # --- end runfiles.bash initialization v3 ---
5+ source misc/bazel/runfiles.sh 2> /dev/null || source external/ql~/misc/bazel/runfiles.sh
156
167dest=" ${2:- $HOME / .local/ bin} "
178
You can’t perform that action at this time.
0 commit comments