Skip to content

Commit

Permalink
mobile: Run buildifier on Envoy Mobile *.bzl (envoyproxy#30412)
Browse files Browse the repository at this point in the history
This is a one-time format fix before `tools/check_format fix` was
working on Envoy Mobile.

Command executed:
```
buildifier --lint=fix bazel/*.bzl
```

Signed-off-by: Fredy Wijaya <[email protected]>
  • Loading branch information
fredyw authored Oct 23, 2023
1 parent ae72941 commit e374427
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion mobile/bazel/android_artifacts.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
load("@envoy_mobile//bazel:dokka.bzl", "sources_javadocs")
load("@rules_java//java:defs.bzl", "java_binary")
load("@google_bazel_common//tools/maven:pom_file.bzl", "pom_file")
load("@rules_java//java:defs.bzl", "java_binary")

# This file is based on https://github.com/aj-michael/aar_with_jni which is
# subject to the following copyright and license:
Expand Down
12 changes: 6 additions & 6 deletions mobile/bazel/envoy_mobile_dependencies.bzl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_detekt//detekt:dependencies.bzl", "rules_detekt_dependencies")
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_repos", "rules_proto_grpc_toolchains")
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
load("@rules_detekt//detekt:dependencies.bzl", "rules_detekt_dependencies")
load("@rules_java//java:repositories.bzl", "rules_java_dependencies")
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_repos", "rules_proto_grpc_toolchains")

def _default_extra_swift_sources_impl(ctx):
ctx.file("WORKSPACE", "")
Expand Down
4 changes: 1 addition & 3 deletions mobile/bazel/envoy_mobile_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
load("@bazel_gazelle//:deps.bzl", "go_repository")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file", "http_jar")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")

def envoy_mobile_repositories():
http_archive(
Expand Down
2 changes: 1 addition & 1 deletion mobile/bazel/envoy_mobile_toolchains.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
load("@rules_detekt//detekt:toolchains.bzl", "rules_detekt_toolchains")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains")
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains")

def envoy_mobile_toolchains():
rules_java_toolchains()
Expand Down
2 changes: 1 addition & 1 deletion mobile/bazel/kotlin_lib.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")

# This is the magic function which helps get the name of the native library
# from the native dependency. In general, the bazel cc_binary rules will
Expand Down

0 comments on commit e374427

Please sign in to comment.