Skip to content

Commit 1ed9772

Browse files
committed
Add buildifier and fix issues
1 parent cba2d1a commit 1ed9772

File tree

15 files changed

+35
-93
lines changed

15 files changed

+35
-93
lines changed

MODULE.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module(
1111
# -------------------------------------------------------------------
1212

1313
bazel_dep(name = "zlib", version = "1.3.1.bcr.6")
14+
bazel_dep(name = "rules_shell", version = "0.6.1")
1415
bazel_dep(name = "rules_scala", version = "7.0.0", repo_name = "io_bazel_rules_scala")
1516
bazel_dep(name = "rules_python", version = "1.5.3")
1617
bazel_dep(name = "rules_proto", version = "7.1.0")
@@ -174,6 +175,7 @@ go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
174175
go_deps.from_file(go_mod = "//:go.mod")
175176
use_repo(
176177
go_deps,
178+
"bazel_gazelle_go_repository_config", # keep
177179
"com_github_bazelbuild_buildtools",
178180
"com_github_bmatcuk_doublestar",
179181
"com_github_emicklei_proto",
@@ -183,10 +185,9 @@ use_repo(
183185
"com_github_stretchr_testify",
184186
"in_gopkg_yaml_v3",
185187
"net_starlark_go",
186-
"org_golang_google_protobuf",
187188
"org_golang_google_grpc",
188189
"org_golang_google_grpc_cmd_protoc_gen_go_grpc",
189-
"bazel_gazelle_go_repository_config", # keep
190+
"org_golang_google_protobuf",
190191
)
191192

192193
# -------------------------------------------------------------------
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# buildifier: disable=module-docstring
12
def java_wrapper(**_kwargs):
23
pass

example/routeguide/cc/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
3+
14
cc_library(
25
name = "helper",
36
srcs = ["helper.cc"],

plugin/akka/akka-grpc/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@build_stack_rules_proto//rules:proto_plugin.bzl", "proto_plugin")
2+
load("@rules_java//java:java_binary.bzl", "java_binary")
23

34
proto_plugin(
45
name = "protoc-gen-akka-grpc",

plugin/scalapb/scalapb/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@build_stack_rules_proto//rules:proto_plugin.bzl", "proto_plugin")
2+
load("@rules_java//java:java_binary.bzl", "java_binary")
23

34
proto_plugin(
45
name = "protoc-gen-scala",

plugin/scalapb/zio-grpc/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@build_stack_rules_proto//rules:proto_plugin.bzl", "proto_plugin")
2+
load("@rules_java//java:java_binary.bzl", "java_binary")
23

34
proto_plugin(
45
name = "protoc-gen-zio-grpc",

proto_repositories.bzl

Lines changed: 0 additions & 83 deletions
This file was deleted.

rules/go/proto_go_modules.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"proto_go_modules.bzl provides the 'proto_go_modules' rule"
22

33
load("@io_bazel_rules_go//go:def.bzl", "GoArchive")
4+
5+
# buildifier: disable=bzl-visibility
46
load("@io_bazel_rules_go//go/private:common.bzl", "GO_TOOLCHAIN")
57

68
ProtoGoModulesInfo = provider(

rules/golden_filegroup.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ For any golden_filegroup target `//:a` that srcs `a.txt`, `//:a.update` copies
1010
`a.txt` and `a.txt.golden'` are identical.
1111
"""
1212

13-
load("@build_stack_rules_proto//rules:providers.bzl", "ProtoCompileInfo")
1413
load(
1514
"@build_stack_rules_proto//rules:proto_compile_gencopy.bzl",
1615
"proto_compile_gencopy_run",
1716
"proto_compile_gencopy_test",
1817
)
18+
load("@build_stack_rules_proto//rules:providers.bzl", "ProtoCompileInfo")
1919

2020
def _files_impl(ctx):
2121
dep = ctx.attr.dep[DefaultInfo]

rules/java/grpc_java_library.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"grpc_java_library.bzl provides a java_library for grpc files."
22

3+
load("@rules_java//java:java_library.bzl", "java_library")
4+
35
def grpc_java_library(**kwargs):
4-
native.java_library(**kwargs)
6+
java_library(**kwargs)

0 commit comments

Comments
 (0)