Skip to content

Commit b3e12d7

Browse files
authored
Add missing load statements (#4508)
This is required for compatibility with bazel @ HEAD. Done with: `buildifier --lint=fix -r .`
1 parent 3fe89b8 commit b3e12d7

File tree

19 files changed

+29
-1
lines changed

19 files changed

+29
-1
lines changed

go/private/context.bzl

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

go/private/rules/binary.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
16+
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
17+
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1618
load(
1719
"//go/private:common.bzl",
1820
"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/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/cgo_alwayslink_init/BUILD.bazel

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

35
cc_library(
46
name = "lib",

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",

tests/core/go_library/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
12
load("//go:def.bzl", "go_binary", "go_library", "go_source", "go_test")
23
load("//go/tools/bazel_testing:def.bzl", "go_bazel_test")
34
load(":def.bzl", "embedsrcs_files")

tests/core/go_plugin_with_proto_library/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("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test")
23
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
34

0 commit comments

Comments
 (0)