Skip to content

Commit 3d62171

Browse files
committed
Run buildifier to add explicit loads
They will be required in Bazel 9.
1 parent fb90c46 commit 3d62171

File tree

21 files changed

+30
-2
lines changed

21 files changed

+30
-2
lines changed

go/private/context.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ load(
4040
NOGO_EXCLUDES = "EXCLUDES",
4141
NOGO_INCLUDES = "INCLUDES",
4242
)
43+
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
4344
load(
4445
"//go/platform:apple.bzl",
4546
"apple_ensure_options",

go/private/extensions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _go_sdk_impl(ctx):
228228
if key not in ["go_mod"]
229229
}
230230
download_tag["version"] = version
231-
additional_download_tags += [struct(**download_tag)]
231+
additional_download_tags.append(struct(**download_tag))
232232

233233
for index, download_tag in enumerate(module.tags.download + additional_download_tags):
234234
# SDKs without an explicit version are fetched even when not selected by toolchain

go/private/rules/binary.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
16+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1517
load(
1618
"//go/private:common.bzl",
1719
"GO_TOOLCHAIN",

go/private/rules/cgo.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1516
load(
1617
"//go/private:common.bzl",
1718
"get_versioned_shared_lib_extension",

go/private/rules/cross.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1516
load(
1617
"//go/private:providers.bzl",
1718
"GoArchive",

tests/bcr/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ load(
77
"go_test",
88
"nogo",
99
)
10+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1011
load("//:transition.bzl", "sdk_transition_test")
1112

1213
nogo(

tests/bcr/proto/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
12
load("@my_rules_go//go:def.bzl", "go_test")
23
load("@my_rules_go//proto:def.bzl", "go_grpc_library", "go_proto_library")
34

tests/core/c_linkmodes/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
2+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
3+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
4+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
25

36
go_binary(
47
name = "adder_archive",

tests/core/cgo/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
22
load("@io_bazel_rules_go//go/tools/bazel_testing:def.bzl", "go_bazel_test")
3+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
4+
load("@rules_cc//cc:cc_import.bzl", "cc_import")
5+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
36

47
package(
58
# go_* rules do not emit module maps.

tests/core/cgo/objc/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2+
load("@rules_cc//cc:objc_library.bzl", "objc_library")
23

34
go_test(
45
name = "objc_test",

0 commit comments

Comments
 (0)