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 24
24
extra_args : >
25
25
buildifier --all-files 2>&1 ||
26
26
(
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
28
28
)
Original file line number Diff line number Diff line change 26
26
name : Format bazel files
27
27
files : \.(bazel|bzl)
28
28
language : system
29
- entry : bazel run //misc/bazel: buildifier
29
+ entry : bazel run //misc/bazel/ buildifier
30
30
pass_filenames : false
31
31
32
32
# 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
-
11
1
sh_library (
12
2
name = "sh_runfiles" ,
13
3
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(
9
9
srcs = ["install.sh" ],
10
10
args = ["$(rlocationpath :ripunzip)" ],
11
11
data = [":ripunzip" ],
12
- deps = ["@bazel_tools//tools/bash/runfiles " ],
12
+ deps = ["//misc/bazel:sh_runfiles " ],
13
13
)
Original file line number Diff line number Diff line change 2
2
3
3
set -eu
4
4
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
15
6
16
7
dest=" ${2:- $HOME / .local/ bin} "
17
8
You can’t perform that action at this time.
0 commit comments