Skip to content

Commit df401a8

Browse files
committed
chore: fix buildifier issues
1 parent 7b9c7c3 commit df401a8

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
repos:
66
# Check formatting and lint for starlark code
77
- repo: https://github.com/keith/pre-commit-buildifier
8-
rev: 6.3.3
8+
rev: 8.2.0
99
hooks:
1010
- id: buildifier
1111
- id: buildifier-lint

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ gazelle(
1313

1414
buildifier(
1515
name = "buildifier.check",
16+
diff_command = "diff -u",
1617
exclude_patterns = ["./.git/*"],
1718
lint_mode = "warn",
1819
mode = "diff",

examples/gem/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ruby.toolchain(
1616
version_file = "//:.ruby-version",
1717
)
1818
use_repo(ruby, "ruby")
19+
1920
ruby.bundle_fetch(
2021
name = "bundle",
2122
srcs = [

examples/jekyll/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
load("@aspect_bazel_lib//lib:run_binary.bzl", "run_binary")
22
load("@bazel_skylib//rules:write_file.bzl", "write_file")
3+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
34

45
package(default_visibility = ["//visibility:public"])
56

examples/jekyll/MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
bazel_dep(name = "bazel_skylib", version = "1.7.1", dev_dependency = True)
44
bazel_dep(name = "aspect_bazel_lib", version = "2.9.4", dev_dependency = True)
55
bazel_dep(name = "rules_ruby", version = "0.0.0", dev_dependency = True)
6+
bazel_dep(name = "rules_shell", version = "0.5.0", dev_dependency = True)
7+
68
local_path_override(
79
module_name = "rules_ruby",
810
path = "../..",
@@ -14,6 +16,7 @@ ruby.toolchain(
1416
version = "3.2.8",
1517
)
1618
use_repo(ruby, "ruby")
19+
1720
ruby.bundle_fetch(
1821
name = "bundle",
1922
gem_checksums = {

0 commit comments

Comments
 (0)