Skip to content

Commit 717c51e

Browse files
authored
bump buildifier in bazelci and correct new lints (#2749)
1 parent 98644ef commit 717c51e

32 files changed

Lines changed: 46 additions & 2 deletions

.bazelci/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ tasks:
5858
test_targets:
5959
- "doc/..."
6060

61-
buildifier: 6.4.0
61+
buildifier: 8.2.1

apple/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ bzl_library(
111111
"@bazel_skylib//lib:dicts",
112112
"@bazel_skylib//lib:paths",
113113
"@build_bazel_apple_support//lib:apple_support",
114+
"@rules_cc//cc/common",
114115
],
115116
)
116117

apple/apple_static_library.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
"""apple_static_library Starlark implementation"""
1616

17+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1718
load(
1819
"//apple:providers.bzl",
1920
"ApplePlatformInfo",

apple/cc_toolchain_forwarder.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ A rule for handling the cc_toolchains and their constraints for a potential "fat
1717
"""
1818

1919
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
20+
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
2021
load("//apple:providers.bzl", "ApplePlatformInfo")
2122
load("//apple/internal:providers.bzl", "new_appleplatforminfo")
2223

apple/dtrace.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ load(
2626
"@build_bazel_apple_support//lib:apple_support.bzl",
2727
"apple_support",
2828
)
29+
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
30+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
2931
load(
3032
"//apple/internal/utils:bundle_paths.bzl",
3133
"bundle_paths",

apple/internal/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ bzl_library(
838838
],
839839
deps = [
840840
"@build_bazel_rules_swift//swift",
841+
"@rules_cc//cc/common",
841842
],
842843
)
843844

apple/internal/apple_framework_import.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ load(
3636
"swift_clang_module_aspect",
3737
"swift_common",
3838
)
39+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
3940
load(
4041
"//apple:providers.bzl",
4142
"AppleFrameworkImportInfo",

apple/internal/apple_xcframework_import.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ load(
2323
"swift_clang_module_aspect",
2424
"swift_common",
2525
)
26+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
2627
load("//apple:providers.bzl", "AppleFrameworkImportInfo")
2728
load(
2829
"//apple/internal:apple_toolchains.bzl",

apple/internal/aspects/swift_dynamic_framework_aspect.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ load(
1818
"@build_bazel_rules_swift//swift:swift.bzl",
1919
"SwiftInfo",
2020
)
21+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
2122

2223
SwiftDynamicFrameworkInfo = provider(
2324
fields = {

apple/internal/cc_info_support.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
"""Support methods for handling artifacts from CcInfo providers."""
1616

17+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
18+
1719
def _get_all_deps(*, deps, split_deps_keys = []):
1820
"""Returns a list of all dependencies from a Label list and optional split attribute keys.
1921

0 commit comments

Comments
 (0)