Skip to content

Commit

Permalink
fix: revert to Bazel 6.4.0 and fix BCR presubmit failure (#693)
Browse files Browse the repository at this point in the history
[BCR presubmit
failure](https://buildkite.com/bazel/bcr-presubmit/builds/2308#018b68a0-d7fb-4c67-9208-90a1b2146581)

I think that 7.0.0rc2 is [not catching missing
repositories](https://bazelbuild.slack.com/archives/C014RARENH0/p1698239007055249).
For now, revert to 6.4.0.

Add missing `local_config_apple_cc`.
  • Loading branch information
cgrindel authored Oct 26, 2023
1 parent ad7602f commit 58d7745
Show file tree
Hide file tree
Showing 22 changed files with 140 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0rc2
6.4.0
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
Expand Down
6 changes: 6 additions & 0 deletions bzlmod/workspace/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/firebase_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/grpc_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
# If they fix this, we can remove the repo_name argument.
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/http_archive_ext_deps/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

non_module_deps = use_extension("//:extensions.bzl", "non_module_deps")
use_repo(
non_module_deps,
Expand Down
7 changes: 7 additions & 0 deletions examples/interesting_deps/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand All @@ -52,6 +58,7 @@ use_repo(
"swiftpkg_opencombine",
"swiftpkg_swift_log",
)

# swift_deps END
swift_deps.configure_package(
name = "swiftpkg_libwebp_xcode",
Expand Down
6 changes: 6 additions & 0 deletions examples/ios_sim/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ bazel_dep(
dev_dependency = True,
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
8 changes: 8 additions & 0 deletions examples/lottie_ios_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -31,6 +32,13 @@ bazel_dep(
dev_dependency = True,
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
8 changes: 8 additions & 0 deletions examples/messagekit_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -31,6 +32,13 @@ bazel_dep(
dev_dependency = True,
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
9 changes: 8 additions & 1 deletion examples/nimble_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -32,7 +33,13 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

# # swift_deps START
apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
"swift_deps",
Expand Down
6 changes: 6 additions & 0 deletions examples/objc_code/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
7 changes: 7 additions & 0 deletions examples/phone_number_kit/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -32,6 +33,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/pkg_manifest_minimal/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
7 changes: 7 additions & 0 deletions examples/resources_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -32,6 +33,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
8 changes: 8 additions & 0 deletions examples/shake_ios_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -31,6 +32,13 @@ bazel_dep(
dev_dependency = True,
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
8 changes: 8 additions & 0 deletions examples/snapkit_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local_path_override(

bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.1")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "apple_support", version = "1.11.1")
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand All @@ -31,6 +32,13 @@ bazel_dep(
dev_dependency = True,
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/soto_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/stripe_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/tca_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/vapor_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down
6 changes: 6 additions & 0 deletions examples/xcmetrics_example/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ bazel_dep(
repo_name = "bazel_gazelle",
)

apple_cc_configure = use_extension(
"@apple_support//crosstool:setup.bzl",
"apple_cc_configure_extension",
)
use_repo(apple_cc_configure, "local_config_apple_cc")

# swift_deps START
swift_deps = use_extension(
"@rules_swift_package_manager//:extensions.bzl",
Expand Down

0 comments on commit 58d7745

Please sign in to comment.