Skip to content

Commit 39b6538

Browse files
Removed @@rules loading
1 parent 6248415 commit 39b6538

File tree

8 files changed

+0
-27
lines changed

8 files changed

+0
-27
lines changed

conan/internal/api/new/bazel_exe.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def test(self):
5151
"""
5252

5353
_bazel_build_exe = """\
54-
load("@rules_cc//cc:defs.bzl", "cc_binary")
55-
5654
cc_binary(
5755
name = "{{name}}",
5856
srcs = ["main.cpp", "{{name}}.cpp", "{{name}}.h"]

conan/internal/api/new/bazel_exe_7.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ def test(self):
5151
"""
5252

5353
_bazel_build_exe = """\
54-
load("@@rules_cc//cc:defs.bzl", "cc_binary")
55-
5654
cc_binary(
5755
name = "{{name}}",
5856
srcs = ["main.cpp", "{{name}}.cpp", "{{name}}.h"]

conan/internal/api/new/bazel_lib.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ def test(self):
9090

9191

9292
_bazel_build_test = """\
93-
load("@rules_cc//cc:defs.bzl", "cc_binary")
94-
9593
cc_binary(
9694
name = "example",
9795
srcs = ["example.cpp"],
@@ -102,8 +100,6 @@ def test(self):
102100
"""
103101

104102
_bazel_build = """\
105-
load("@rules_cc//cc:defs.bzl", "cc_library")
106-
107103
cc_library(
108104
name = "{{name}}",
109105
srcs = ["{{name}}.cpp"],

conan/internal/api/new/bazel_lib_7.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ def test(self):
9090

9191

9292
_bazel_build_test = """\
93-
load("@@rules_cc//cc:defs.bzl", "cc_binary")
94-
9593
cc_binary(
9694
name = "example",
9795
srcs = ["example.cpp"],
@@ -102,8 +100,6 @@ def test(self):
102100
"""
103101

104102
_bazel_build = """\
105-
load("@@rules_cc//cc:defs.bzl", "cc_library")
106-
107103
cc_library(
108104
name = "{{name}}",
109105
srcs = ["{{name}}.cpp"],

conan/tools/google/bazeldeps.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,6 @@ class _BazelBUILDGenerator:
413413
)
414414
{% endif %}
415415
{% endmacro %}
416-
load("@@rules_cc//cc:defs.bzl", "cc_import", "cc_library")
417-
418416
# Components precompiled libs
419417
{% for component in components %}
420418
{{ cc_import_macro(component["libs"]) }}

test/functional/toolchains/google/test_bazel.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ def test_transitive_libs_consuming_6x(shared):
125125
load_conan_dependencies()
126126
""")
127127
bazel_build_linux = textwrap.dedent("""\
128-
load("@rules_cc//cc:defs.bzl", "cc_library")
129-
130128
cc_library(
131129
name = "mysecondlib",
132130
srcs = ["mysecondlib.cpp"],
@@ -135,8 +133,6 @@ def test_transitive_libs_consuming_6x(shared):
135133
)
136134
""")
137135
bazel_build = textwrap.dedent("""\
138-
load("@rules_cc//cc:defs.bzl", "cc_library")
139-
140136
cc_library(
141137
name = "mysecondlib",
142138
srcs = ["mysecondlib.cpp"],
@@ -255,8 +251,6 @@ def test_transitive_libs_consuming(shared):
255251
use_repo(load_conan_dependencies, "myfirstlib")
256252
""")
257253
bazel_build_linux = textwrap.dedent("""\
258-
load("@@rules_cc//cc:defs.bzl", "cc_library")
259-
260254
cc_library(
261255
name = "mysecondlib",
262256
srcs = ["mysecondlib.cpp"],
@@ -265,8 +259,6 @@ def test_transitive_libs_consuming(shared):
265259
)
266260
""")
267261
bazel_build = textwrap.dedent("""\
268-
load("@@rules_cc//cc:defs.bzl", "cc_library")
269-
270262
cc_library(
271263
name = "mysecondlib",
272264
srcs = ["mysecondlib.cpp"],

test/functional/toolchains/google/test_bazeltoolchain_cross_compilation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def build(self):
5353
bazel.build()
5454
""")
5555
BUILD = textwrap.dedent("""
56-
load("@rules_cc//cc:defs.bzl", "cc_library")
5756
cc_library(
5857
name = "myapp",
5958
srcs = ["myapp.cpp"],

test/integration/toolchains/google/test_bazeldeps.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ def layout(self):
5454
assert "conanfile.py: Generator 'BazelToolchain' calling 'generate()'" in c.out
5555
build_file = c.load("consumer/conandeps/dep/BUILD.bazel")
5656
expected = textwrap.dedent("""\
57-
load("@@rules_cc//cc:defs.bzl", "cc_import", "cc_library")
58-
5957
# Components precompiled libs
6058
# Root package precompiled libs
6159
@@ -151,8 +149,6 @@ def package_info(self):
151149
c.run("install --requires=dep/0.1 -g BazelDeps --build=missing")
152150
build_file = c.load("dep/BUILD.bazel")
153151
expected = textwrap.dedent("""\
154-
load("@@rules_cc//cc:defs.bzl", "cc_import", "cc_library")
155-
156152
# Components precompiled libs
157153
# Root package precompiled libs
158154
cc_import(

0 commit comments

Comments
 (0)