Skip to content

Commit

Permalink
[BazelDeps] # do not sort comment (#17109)
Browse files Browse the repository at this point in the history
* Adding specific comment

* Fixed tests
  • Loading branch information
franramirez688 authored Oct 3, 2024
1 parent 7a35b62 commit 1e42a99
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions conan/tools/google/bazeldeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ class _BazelBUILDGenerator:
visibility = ["//visibility:public"],
{% if obj["libs"] or obj["dependencies"] or obj["component_names"] %}
deps = [
# do not sort
{% for lib in obj["libs"] %}
":{{ lib.name }}_precompiled",
{% endfor %}
Expand Down
16 changes: 16 additions & 0 deletions test/integration/toolchains/google/test_bazeldeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":mymath_precompiled",
],
)
Expand Down Expand Up @@ -271,6 +272,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
"@second//:second",
"@other//:other",
],
Expand All @@ -288,6 +290,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
"@first//:myfirstlib-cmp1",
],
)
Expand All @@ -302,6 +305,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":second-mycomponent",
],
)
Expand All @@ -317,6 +321,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":second-mycomponent",
":second-myfirstcomp",
"@first//:myfirstlib",
Expand All @@ -343,6 +348,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":libcmp1_precompiled",
],
)
Expand All @@ -358,6 +364,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":myfirstlib-cmp1",
],
)""") in content
Expand Down Expand Up @@ -443,6 +450,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
"@other//:component1",
],
)""") in content
Expand Down Expand Up @@ -473,6 +481,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":other_cmp1_precompiled",
],
)
Expand All @@ -487,6 +496,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":other_cmp2_precompiled",
],
)
Expand All @@ -501,6 +511,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":component1",
],
)
Expand All @@ -516,6 +527,7 @@ def package_info(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":component1",
":fancy_name-cmp2",
":component3",
Expand Down Expand Up @@ -578,6 +590,7 @@ def build_requirements(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":lib{0}_precompiled",
],
)""")
Expand Down Expand Up @@ -653,6 +666,7 @@ def _load_dependenies_impl(mctx):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":mylib_precompiled",
],
)""") in content
Expand Down Expand Up @@ -745,6 +759,7 @@ def generate(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":component1",
],
)
Expand All @@ -760,6 +775,7 @@ def generate(self):
],
visibility = ["//visibility:public"],
deps = [
# do not sort
":component1",
":libother-cmp2",
":component3",
Expand Down

0 comments on commit 1e42a99

Please sign in to comment.